mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-04 06:15:24 +02:00
17 lines
438 B
Handlebars
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}}
|