diff options
author | Lukas Dietrich <lukas@lukasdietrich.com> | 2016-02-27 13:59:11 +0100 |
---|---|---|
committer | Lukas Dietrich <lukas@lukasdietrich.com> | 2016-02-27 13:59:11 +0100 |
commit | c0eaae200e4c6cfdef5a0a298921db02cba56a92 (patch) | |
tree | fe0ea0663d2f2e7abc1176dd0ebcd5416fa8ac6b /templates/repo/issue | |
parent | 79ae163296be367058576589bfc583c22a2e24ca (diff) | |
download | gitea-c0eaae200e4c6cfdef5a0a298921db02cba56a92.tar.gz gitea-c0eaae200e4c6cfdef5a0a298921db02cba56a92.zip |
Add ForegroundColor for labels
Diffstat (limited to 'templates/repo/issue')
-rw-r--r-- | templates/repo/issue/labels.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/list.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/labels.tmpl b/templates/repo/issue/labels.tmpl index d7f758ae65..7fef4390c8 100644 --- a/templates/repo/issue/labels.tmpl +++ b/templates/repo/issue/labels.tmpl @@ -39,7 +39,7 @@ <div class="label list"> {{range .Labels}} <li class="item"> - <div class="ui label" style="background-color: {{.Color}}"><i class="octicon octicon-tag"></i> {{.Name}}</div> + <div class="ui label" style="color: {{.ForegroundColor}}; background-color: {{.Color}}"><i class="octicon octicon-tag"></i> {{.Name}}</div> {{if $.IsRepositoryAdmin}} <a class="ui right delete-button" href="#" data-url="{{$.RepoLink}}/labels/delete" data-id="{{.ID}}"><i class="octicon octicon-trashcan"></i> {{$.i18n.Tr "repo.issues.label_delete"}}</a> <a class="ui right edit-label-button" href="#" data-id={{.ID}} data-title={{.Name}} data-color={{.Color}}><i class="octicon octicon-pencil"></i> {{$.i18n.Tr "repo.issues.label_edit"}}</a> diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 66bd2ae298..e9a833925d 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -105,7 +105,7 @@ <a class="title" href="{{$.Link}}/{{.Index}}">{{.Name}}</a> {{range .Labels}} - <a class="ui label" href="{{$.Link}}?type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}" style="background-color: {{.Color}}">{{.Name}}</a> + <a class="ui label" href="{{$.Link}}?type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}">{{.Name}}</a> {{end}} {{if .NumComments}} |