From efec0d393bebf2d66e8120834cda9bc314602efd Mon Sep 17 00:00:00 2001 From: zeripath Date: Fri, 28 Feb 2020 02:03:17 +0000 Subject: [PATCH] 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 Co-authored-by: silverwind Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> --- templates/repo/view_list.tmpl | 10 +++++----- web_src/less/_base.less | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index c296eb7be..a1c8c133e 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -16,10 +16,11 @@ {{end}} {{end}} - {{ShortSha .LatestCommit.ID.String}} + {{ShortSha .LatestCommit.ID.String}} +
{{if .LatestCommit.Signature}} {{if .LatestCommitVerification.Verified}} -
+
{{if ne .LatestCommitVerification.SigningUser.ID 0}} @@ -32,11 +33,10 @@ {{end}}
{{else}} -
- -
+ {{end}} {{end}} +
{{template "repo/commit_status" .LatestCommitStatus}} {{ $commitLink:= printf "%s/commit/%s" .RepoLink .LatestCommit.ID }} diff --git a/web_src/less/_base.less b/web_src/less/_base.less index 1df012454..b9000b691 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -1034,7 +1034,7 @@ i.icons .icon:first-child { } i.icon.centerlock { - top: 1.5em; + top: 1.45em; } .ui.label > .detail .icons {