Skip to content

Commit 421e7b7

Browse files
authored
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 <[email protected]>
1 parent 82be59e commit 421e7b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/repo/view_list.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
{{end}}
1818
<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}}">
1919
<span class="shortsha">{{ShortSha .LatestCommit.ID.String}}</span>
20-
<div class="ui detail icon button">
21-
{{if .LatestCommit.Signature}}
20+
{{if .LatestCommit.Signature}}
21+
<div class="ui detail icon button">
2222
{{if .LatestCommitVerification.Verified}}
2323
<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}}">
2424
{{if ne .LatestCommitVerification.SigningUser.ID 0}}
@@ -35,8 +35,8 @@
3535
{{else}}
3636
<i title="{{$.i18n.Tr .LatestCommitVerification.Reason}}" class="unlock icon"></i>
3737
{{end}}
38-
{{end}}
39-
</div>
38+
</div>
39+
{{end}}
4040
</a>
4141
{{template "repo/commit_status" .LatestCommitStatus}}
4242
{{ $commitLink:= printf "%s/commit/%s" .RepoLink .LatestCommit.ID }}

0 commit comments

Comments
 (0)