Skip to content

Commit 14475e9

Browse files
committed
Follow delvh's suggestion
1 parent 7b824a5 commit 14475e9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

templates/repo/commits_list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<pre class="commit-body tw-hidden">{{RenderCommitBody $.Context .Message ($.Repository.ComposeMetas ctx)}}</pre>
7474
{{end}}
7575
{{range (index $.CommitsTagsMap .ID.String)}}
76-
<span class="ui label">{{.TagName}}</span>
76+
{{- template "repo/tag/name" dict "RepoFullName" $.Repository.FullName "TagName" .TagName "IsRelease" (not .IsTag) -}}
7777
{{end}}
7878
</td>
7979
{{if .Committer}}

templates/repo/tag/name.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="/{{.RepoFullName}}/releases/tag/{{.TagName}}"><span class="ui label{{if .IsRelease}} primary{{end}}">{{.TagName}}</span></a>

0 commit comments

Comments
 (0)