summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-06-11 21:42:55 +0200
committerGitHub <noreply@github.com>2020-06-11 15:42:55 -0400
commitb682a2c1b2d5efde24378858453903b5b89d6df8 (patch)
treed123a90d1bb87d836a7afdf2492d1b1142a5b636 /templates
parente282fbe75380e05b802e228348179774b2975745 (diff)
downloadgitea-b682a2c1b2d5efde24378858453903b5b89d6df8.tar.gz
gitea-b682a2c1b2d5efde24378858453903b5b89d6df8.zip
Show exact tag for commit on diff view (#11846)
* Show exact tag for commit on diff view * Fix comment Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/commit_page.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl
index 7a967ee55e..51f56574c1 100644
--- a/templates/repo/commit_page.tmpl
+++ b/templates/repo/commit_page.tmpl
@@ -30,6 +30,9 @@
{{if .BranchName}}
<span class="text grey">{{svg "octicon-git-branch" 16}}{{.BranchName}}</span>
{{end}}
+ {{if .TagName}}
+ <span class="text grey">{{svg "octicon-tag" 16}}{{.TagName}}</span>
+ {{end}}
</div>
<div class="ui attached info segment {{$class}}">
<div class="ui stackable grid">