diff options
author | James <james_g_k@hotmail.co.uk> | 2018-03-07 12:39:38 +0100 |
---|---|---|
committer | jc <u@gogs.io> | 2018-03-07 06:39:38 -0500 |
commit | 199d67581a1c30e5b9380af6c9d63a9cb7320449 (patch) | |
tree | 5388d72c5f5655468816a87db14c3087ae84106c | |
parent | 49bd893a77db6061c39fb3fb9b41d9297961d133 (diff) |
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
-rw-r--r-- | templates/user/dashboard/issues.tmpl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index 720f3fc7..b1b6f602 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -73,6 +73,14 @@ {{if .NumComments}} <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}} |