mirror of https://github.com/gogs/gogs.git
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 commentspull/4913/head
parent
49bd893a77
commit
199d67581a
|
@ -74,6 +74,14 @@
|
||||||
<span class="comment ui right"><i class="octicon octicon-comment"></i> {{.NumComments}}</span>
|
<span class="comment ui right"><i class="octicon octicon-comment"></i> {{.NumComments}}</span>
|
||||||
{{end}}
|
{{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">
|
<p class="desc">
|
||||||
{{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.HomeLink .Poster.Name | Safe}}
|
{{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.HomeLink .Poster.Name | Safe}}
|
||||||
{{if .Assignee}}
|
{{if .Assignee}}
|
||||||
|
|
Loading…
Reference in New Issue