summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/list.tmpl
diff options
context:
space:
mode:
authorZsombor <gzsombor@users.noreply.github.com>2017-08-24 14:30:27 +0200
committerLauris BH <lauris@nix.lv>2017-08-24 15:30:27 +0300
commitda230a287264d38156e950a3149e43f65599e65b (patch)
tree4c5f4d16186f2d201515f77fdf99e9d3fc90df95 /templates/repo/issue/list.tmpl
parent174255e74ee2c07e685913ab8bce08fc046569f0 (diff)
downloadgitea-da230a287264d38156e950a3149e43f65599e65b.tar.gz
gitea-da230a287264d38156e950a3149e43f65599e65b.zip
Add possibility to record branch or tag information in an issue (#780)
Diffstat (limited to 'templates/repo/issue/list.tmpl')
-rw-r--r--templates/repo/issue/list.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl
index 8de52fb23f..5c5a574976 100644
--- a/templates/repo/issue/list.tmpl
+++ b/templates/repo/issue/list.tmpl
@@ -171,6 +171,9 @@
<div class="ui {{if .IsRead}}black{{else}}green{{end}} label">#{{.Index}}</div>
<a class="title has-emoji" href="{{$.Link}}/{{.Index}}">{{.Title}}</a>
+ {{if .Ref}}
+ <a class="ui label" href="{{$.RepoLink}}/src/{{.Ref}}">{{.Ref}}</a>
+ {{end}}
{{range .Labels}}
<a class="ui label" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}">{{.Name | Sanitize}}</a>
{{end}}