all repos

mugit @ a744b78e4350e823249d6153b8392a34fce6f880

馃惍 git server that your cow will love
1 files changed, 1 insertions(+), 1 deletions(-)
ui: fix breadcrumbs for non text files
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-03-09 18:33:26 +0200
Authored at: 2026-03-09 18:33:07 +0200
Change ID: utxtwkwktlrmmwnlyqoywykqoxtowsrs
Parent: 2d21be8
M internal/handlers/repo.go
路路路
        207
        207
         		return

      
        208
        208
         	}

      
        209
        209
         

      
        
        210
        +	p.Breadcrumbs = Breadcrumbs(treePath)

      
        210
        211
         	if !fc.IsImage && !fc.IsBinary {

      
        211
        212
         		contentStr := fc.String()

      
        212
        213
         		lc, err := countLines(strings.NewReader(contentStr))

      路路路
        219
        220
         		}

      
        220
        221
         		p.Content = contentStr

      
        221
        222
         		p.LineCount = lines // TODO: replace with strings.Count(, "\n")

      
        222
        
        -		p.Breadcrumbs = Breadcrumbs(treePath)

      
        223
        223
         	}

      
        224
        224
         

      
        225
        225
         	h.templ(w, "repo_file", h.pageData(repo, p))