summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-15 19:52:40 -0400
committerUnknwon <u@gogs.io>2016-03-15 19:52:40 -0400
commit9a5a27ea8d855e8724ebb066a40e43a7dea119f5 (patch)
tree7853ef7f337f47e065171473df0e6fd3899dd7b8 /templates/repo/issue
parent94d7b62922055d74424fa20439b563b0457b3558 (diff)
downloadgitea-9a5a27ea8d855e8724ebb066a40e43a7dea119f5.tar.gz
gitea-9a5a27ea8d855e8724ebb066a40e43a7dea119f5.zip
Improve repository lable style
- add border-radius to filter list items - use color as background of label for issue/pull view page
Diffstat (limited to 'templates/repo/issue')
-rw-r--r--templates/repo/issue/view_content.tmpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 30687a2bb8..e5c3d3d42d 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -246,7 +246,10 @@
<div class="ui labels list">
<span class="no-select item {{if .HasSelectedLabel}}hide{{end}}">{{.i18n.Tr "repo.issues.new.no_label"}}</span>
{{range .Labels}}
- <a class="{{if not .IsChecked}}hide{{end}} item" id="label_{{.ID}}" href="{{$.RepoLink}}/issues?labels={{.ID}}"><span class="label color" style="background-color: {{.Color}}"></span> <span class="text">{{.Name}}</span></a>
+ <div class="item">
+ <a class="ui label {{if not .IsChecked}}hide{{end}}" id="label_{{.ID}}" href="{{$.RepoLink}}/issues?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}">{{.Name}}</a>
+ </div>
+
{{end}}
</div>