From ba7ab94df0e1e4b3b966b035084a9f31d55dd385 Mon Sep 17 00:00:00 2001 From: retoor Date: Sun, 15 Dec 2024 23:56:09 +0000 Subject: [PATCH] Update data/gitea/templates/repo/home.tmpl --- data/gitea/templates/repo/home.tmpl | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/data/gitea/templates/repo/home.tmpl b/data/gitea/templates/repo/home.tmpl index 3a0e76d..e778bd0 100644 --- a/data/gitea/templates/repo/home.tmpl +++ b/data/gitea/templates/repo/home.tmpl @@ -18,8 +18,8 @@ {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{end}} {{end}} - {{ if and (not .HideRepoInfo) (not .IsBlame)}} - + {{ if and (not .IsSigned) (not .HideRepoInfo) (not .IsBlame)}} +
Source files of this project at bottom of page. All source is under MIT license if no LICENSE file in list. @@ -55,7 +55,7 @@ {{$n := len .TreeNames}} {{$l := Eval $n "-" 1}} - + {{if .IsSigned }} {{if .IsViewFile}} {{template "repo/view_file" .}} {{else if .IsBlame}} @@ -63,12 +63,22 @@ {{else}}{{/* IsViewDirectory */}}
+ {{template "repo/sub_menu" .}} {{template "repo/view_list" .}}
{{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)}}