templates/user/dashboard/issues: show labels to each issue (#4976)

* add issue labels

* remove hyperlink from issue label

* wrap labels in right aligned span

* put issues with div

put the issue labels within a div so they don't interfere with the number of comments
pull/4913/head
James 2018-03-07 12:39:38 +01:00 committed by jc
parent 49bd893a77
commit 199d67581a
1 changed files with 8 additions and 0 deletions

View File

@ -74,6 +74,14 @@
<span class="comment ui right"><i class="octicon octicon-comment"></i> {{.NumComments}}</span>
{{end}}
<div>
<span class="ui right">
{{range .Labels}}
<a class="ui label" style="color: {{.ForegroundColor}}; background-color: {{.Color}}">{{.Name | Sanitize}}</a>
{{end}}
</span>
</div>
<p class="desc">
{{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.HomeLink .Poster.Name | Safe}}
{{if .Assignee}}