From: Wenxuan Zhao Date: Mon, 4 Nov 2019 10:20:12 +0000 (-0800) Subject: Fix: remove duplicated signed commit icons (#8820) X-Git-Tag: v1.11.0-rc1~416 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0471aae348ea9e225ceaaa9049e0d40ece972877;p=gitea.git Fix: remove duplicated signed commit icons (#8820) Signed-off-by: Wenxuan Zhao --- diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index 177c434724..dee9dab2b5 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -13,56 +13,55 @@ {{range $r}} - {{$userName := .Author.Name}} + {{$userName := .Author.Name}} {{if .User}} {{if .User.FullName}} - {{$userName = .User.FullName}} + {{$userName = .User.FullName}} {{end}} -   {{$userName}} +   {{$userName}} {{else}}   {{$userName}} {{end}} - {{$class := "ui sha label"}} - {{if .Signature}} - {{$class = (printf "%s%s" $class " isSigned")}} - {{if .Verification.Verified}} - {{$class = (printf "%s%s" $class " isVerified")}} - {{else if .Verification.Warning}} - {{$class = (printf "%s%s" $class " isWarning")}} - {{end}} - {{end}} - {{if $.Reponame}} - - {{else}} - - {{end}} + {{$class := "ui sha label"}} + {{if .Signature}} + {{$class = (printf "%s%s" $class " isSigned")}} + {{if .Verification.Verified}} + {{$class = (printf "%s%s" $class " isVerified")}} + {{else if .Verification.Warning}} + {{$class = (printf "%s%s" $class " isWarning")}} + {{end}} + {{end}} + {{if $.Reponame}} + + {{else}} + + {{end}} {{ShortSha .ID.String}} {{if .Signature}}
{{if .Verification.Verified}} - {{if ne .Verification.SigningUser.ID 0}} - - {{else}} - - - - - {{end}} + + {{else}} + + + + + {{end}} {{else if .Verification.Warning}} - - {{else}} + + {{else}} {{end}}
{{end}} - {{if $.Reponame}} -
- {{else}} - - {{end}} + {{if $.Reponame}} + + {{else}} + + {{end}} @@ -73,7 +72,7 @@ {{end}} {{if eq (CommitType .) "SignCommitWithStatuses"}} - {{template "repo/commit_status" .Status}} + {{template "repo/commit_status" .Status}} {{end}} {{if IsMultilineCommitMessage .Message}}