diff options
author | zeripath <art27@cantab.net> | 2020-02-29 13:27:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-29 13:27:19 +0000 |
commit | 421e7b7875d4ee71eeaec6e1e28a3758adcb55ce (patch) | |
tree | ab83e8abcdf35a302f3d12b342921a54d44dd044 | |
parent | 82be59e633f0320ba9dd6de8c3216fad894c75a4 (diff) | |
download | gitea-421e7b7875d4ee71eeaec6e1e28a3758adcb55ce.tar.gz gitea-421e7b7875d4ee71eeaec6e1e28a3758adcb55ce.zip |
Fix appearance of unsigned sha box in view_list (#10543)
Unfortunately the fix in #10511 was slightly incorrect and placed the
detail box at one level too far out.
Signed-off-by: Andrew Thornton <art27@cantab.net>
-rw-r--r-- | templates/repo/view_list.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index a1c8c133ec..5f4209971f 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -17,8 +17,8 @@ {{end}} <a rel="nofollow" class="ui sha label {{if .LatestCommit.Signature}} isSigned {{if .LatestCommitVerification.Verified }} isVerified{{if eq .LatestCommitVerification.TrustStatus "trusted"}}{{else if eq .LatestCommitVerification.TrustStatus "untrusted"}}Untrusted{{else}}Unmatched{{end}}{{else if .LatestCommitVerification.Warning}} isWarning{{end}}{{end}}" href="{{.RepoLink}}/commit/{{.LatestCommit.ID}}"> <span class="shortsha">{{ShortSha .LatestCommit.ID.String}}</span> - <div class="ui detail icon button"> - {{if .LatestCommit.Signature}} + {{if .LatestCommit.Signature}} + <div class="ui detail icon button"> {{if .LatestCommitVerification.Verified}} <div title="{{if eq .LatestCommitVerification.TrustStatus "trusted"}}{{else if eq .LatestCommitVerification.TrustStatus "untrusted"}}{{.i18n.Tr "repo.commits.signed_by_untrusted_user"}}: {{else}}{{.i18n.Tr "repo.commits.signed_by_untrusted_user_unmatched"}}: {{end}}{{.LatestCommitVerification.Reason}}"> {{if ne .LatestCommitVerification.SigningUser.ID 0}} @@ -35,8 +35,8 @@ {{else}} <i title="{{$.i18n.Tr .LatestCommitVerification.Reason}}" class="unlock icon"></i> {{end}} - {{end}} - </div> + </div> + {{end}} </a> {{template "repo/commit_status" .LatestCommitStatus}} {{ $commitLink:= printf "%s/commit/%s" .RepoLink .LatestCommit.ID }} |