Skip to content

Commit efec0d3

Browse files
zeripathsilverwindguillep2k
authored
Fix the signing icon in the view_list.tmpl page (#10511)
* Fix the view_list.tmpl page * fix-centerlock * Update web_src/less/_base.less as per @silverwind Co-Authored-By: silverwind <[email protected]> Co-authored-by: silverwind <[email protected]> Co-authored-by: guillep2k <[email protected]>
1 parent e57ac84 commit efec0d3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

templates/repo/view_list.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
{{end}}
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}}">
19-
<span class="shortsha">{{ShortSha .LatestCommit.ID.String}}</span>
19+
<span class="shortsha">{{ShortSha .LatestCommit.ID.String}}</span>
20+
<div class="ui detail icon button">
2021
{{if .LatestCommit.Signature}}
2122
{{if .LatestCommitVerification.Verified}}
22-
<div class="ui detail icon button" 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}}">
23+
<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}}">
2324
{{if ne .LatestCommitVerification.SigningUser.ID 0}}
2425
<i class="lock icon"></i>
2526
<img class="ui signature avatar image" src="{{.LatestCommitVerification.SigningUser.RelAvatarLink}}" />
@@ -32,11 +33,10 @@
3233
{{end}}
3334
</div>
3435
{{else}}
35-
<div class="ui detail icon button">
36-
<i title="{{$.i18n.Tr .LatestCommitVerification.Reason}}" class="unlock icon"></i>
37-
</div>
36+
<i title="{{$.i18n.Tr .LatestCommitVerification.Reason}}" class="unlock icon"></i>
3837
{{end}}
3938
{{end}}
39+
</div>
4040
</a>
4141
{{template "repo/commit_status" .LatestCommitStatus}}
4242
{{ $commitLink:= printf "%s/commit/%s" .RepoLink .LatestCommit.ID }}

web_src/less/_base.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ i.icons .icon:first-child {
10341034
}
10351035

10361036
i.icon.centerlock {
1037-
top: 1.5em;
1037+
top: 1.45em;
10381038
}
10391039

10401040
.ui.label > .detail .icons {

0 commit comments

Comments
 (0)