Browse Source

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/5126/head
James 7 years ago committed by jc
parent
commit
199d67581a
  1. 8
      templates/user/dashboard/issues.tmpl

8
templates/user/dashboard/issues.tmpl

@ -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}}

Loading…
Cancel
Save