summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-05-05 10:15:36 +0300
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-05-05 15:15:36 +0800
commit2e17dda8bb583d2a088589ca4d37ce2d4131b0e7 (patch)
tree4860003c9b725a9911671c8e9051fa16da159cea /templates
parent935caa7f95f0ce5cc7e01c24bd41b8ffce658581 (diff)
downloadgitea-2e17dda8bb583d2a088589ca4d37ce2d4131b0e7.tar.gz
gitea-2e17dda8bb583d2a088589ca4d37ce2d4131b0e7.zip
Remove sha1 hash display in repository table and add latest commit GPG check (#1678)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/view_list.tmpl18
1 files changed, 15 insertions, 3 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl
index 82167de64a..663ef41447 100644
--- a/templates/repo/view_list.tmpl
+++ b/templates/repo/view_list.tmpl
@@ -13,7 +13,18 @@
<img class="ui avatar image img-12" src="{{AvatarLink .LatestCommit.Author.Email}}" />
<strong>{{.LatestCommit.Author.Name}}</strong>
{{end}}
- <a rel="nofollow" class="ui sha label" href="{{.RepoLink}}/commit/{{.LatestCommit.ID}}" rel="nofollow">{{ShortSha .LatestCommit.ID.String}}</a>
+ <a rel="nofollow" class="ui sha label {{if .LatestCommit.Signature}} isSigned {{if .LatestCommitVerification.Verified }} isVerified {{end}}{{end}}" href="{{.RepoLink}}/commit/{{.LatestCommit.ID}}">
+ {{ShortSha .LatestCommit.ID.String}}
+ {{if .LatestCommit.Signature}}
+ <div class="ui detail icon button">
+ {{if .LatestCommitVerification.Verified}}
+ <i title="{{.LatestCommitVerification.Reason}}" class="lock green icon"></i>
+ {{else}}
+ <i title="{{$.i18n.Tr .LatestCommitVerification.Reason}}" class="unlock icon"></i>
+ {{end}}
+ </div>
+ {{end}}
+ </a>
<span class="grey has-emoji">{{RenderCommitMessage false .LatestCommit.Summary .RepoLink $.Repository.ComposeMetas}}</span>
</th>
<th class="nine wide">
@@ -61,8 +72,9 @@
</td>
{{end}}
<td class="message collapsing has-emoji">
- <a rel="nofollow" class="ui sha label" href="{{$.RepoLink}}/commit/{{$commit.ID}}">{{ShortSha $commit.ID.String}}</a>
- {{RenderCommitMessage false $commit.Summary $.RepoLink $.Repository.ComposeMetas}}
+ <a rel="nofollow" href="{{$.RepoLink}}/commit/{{$commit.ID}}">
+ {{RenderCommitMessage false $commit.Summary $.RepoLink $.Repository.ComposeMetas}}
+ </a>
</td>
<td class="text grey right age">{{TimeSince $commit.Committer.When $.Lang}}</td>
</tr>