0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-08-04 06:15:24 +02:00
gitea/templates/repo/home_content.tmpl
Kerwin Bryant 087f0d41bd fix
2025-01-03 07:47:44 +00:00

17 lines
438 B
Handlebars

{{$treeNamesLen := len .TreeNames}}
{{$isTreePathRoot := eq $treeNamesLen 0}}
{{if .IsViewFile}}
{{template "repo/view_file" .}}
{{else if .IsBlame}}
{{template "repo/blame" .}}
{{else}}{{/* IsViewDirectory */}}
{{if $isTreePathRoot}}
{{template "repo/code/upstream_diverging_info" .}}
{{end}}
{{template "repo/view_list" .}}
{{if and .ReadmeExist (or .IsMarkup .IsPlainText)}}
{{template "repo/view_file" .}}
{{end}}
{{end}}