aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-05-08 15:50:15 +0800
committerLauris BH <lauris@nix.lv>2019-05-08 10:50:15 +0300
commit13cd28602edc885f585c1ac6edad599700070bad (patch)
tree7e0dd09f3b765fe10731221f371d8160b4e68869 /templates
parent36bde02841f0736acb4529a6ce453ff694934e6a (diff)
downloadgitea-13cd28602edc885f585c1ac6edad599700070bad.tar.gz
gitea-13cd28602edc885f585c1ac6edad599700070bad.zip
Change the color of issues/pulls list, merged is purple and closed is red (#6874)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/list.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl
index aa408aceee..8639541503 100644
--- a/templates/repo/issue/list.tmpl
+++ b/templates/repo/issue/list.tmpl
@@ -200,7 +200,7 @@
<input type="checkbox" data-issue-id={{.ID}}></input>
</div>
{{end}}
- <div class="ui {{if .IsRead}}black{{else}}green{{end}} label">#{{.Index}}</div>
+ <div class="ui {{if .IsClosed}}{{if .IsPull}}{{if .PullRequest.HasMerged}}purple{{else}}red{{end}}{{else}}red{{end}}{{else}}{{if .IsRead}}black{{else}}green{{end}}{{end}} label">#{{.Index}}</div>
<a class="title has-emoji" href="{{$.Link}}/{{.Index}}">{{.Title}}</a>
{{if .IsPull }}