Update data/gitea/templates/repo/home.tmpl

This commit is contained in:
retoor 2024-12-15 23:56:09 +00:00
parent 9401354a37
commit ba7ab94df0

View File

@ -18,8 +18,8 @@
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<button id="manage_topic" class="btn interact-fg tw-text-12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button>{{end}}
</div>
{{end}}
{{ if and (not .HideRepoInfo) (not .IsBlame)}}
{{ if and (not .IsSigned) (not .HideRepoInfo) (not .IsBlame)}}
<div class="repo-description gt-word-break">
Source files of this project at <a href="#bottom">bottom</a> of page. All source is under MIT license if no LICENSE file in list.
@ -55,7 +55,7 @@
<!-- HIER-->
{{$n := len .TreeNames}}
{{$l := Eval $n "-" 1}}
{{if .IsSigned }}
{{if .IsViewFile}}
{{template "repo/view_file" .}}
{{else if .IsBlame}}
@ -63,12 +63,22 @@
{{else}}{{/* IsViewDirectory */}}
<div id="bottom">
{{template "repo/sub_menu" .}}
{{template "repo/view_list" .}}
</div>
{{end}}
{{ end }}
{{ if .IsSigned }}
{{template "repo/sub_menu" .}}
{{if .IsSigned }}
{{template "repo/sub_menu" .}}
{{template "repo/view_list" .}}
{{if .IsViewFile}}
{{template "repo/view_file" .}}
{{else if .IsBlame}}
{{template "repo/blame" .}}
{{else}}{{/* IsViewDirectory */}}
{{ end }}
{{ end }}
{{$isHomepage := (eq $n 0)}}
<div class="repo-button-row" data-is-homepage="{{$isHomepage}}">