]> source.dussan.org Git - gitea.git/commitdiff
Change the color of issues/pulls list, merged is purple and closed is red (#6874)
authorLunny Xiao <xiaolunwen@gmail.com>
Wed, 8 May 2019 07:50:15 +0000 (15:50 +0800)
committerLauris BH <lauris@nix.lv>
Wed, 8 May 2019 07:50:15 +0000 (10:50 +0300)
templates/repo/issue/list.tmpl

index aa408aceeec5b62b72b4f0c69c9601d8fac2b062..863954150337d25169e637498ecec86b66ce5676 100644 (file)
                                                <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 }}