浏览代码

Standardise icon on projects PR page (#15387)

Fix #15272

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
tags/v1.15.0-rc1
zeripath 3 年前
父节点
当前提交
8171478d1d
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 17 次插入4 次删除
  1. 17
    4
      templates/repo/projects/view.tmpl

+ 17
- 4
templates/repo/projects/view.tmpl 查看文件

@@ -158,10 +158,23 @@
<div class="card board-card" data-issue="{{.ID}}">
<div class="content">
<div class="header">
<span class="{{if .IsClosed}}red{{else}}green{{end}}">
{{if .IsPull}}{{svg "octicon-git-merge"}}
{{else if .IsClosed}}{{svg "octicon-issue-closed"}}
{{else}}{{svg "octicon-issue-opened"}}
<span>
{{if .IsPull}}
{{if .PullRequest.HasMerged}}
{{svg "octicon-git-merge" 16 "text purple"}}
{{else}}
{{if .IsClosed}}
{{svg "octicon-git-pull-request" 16 "text red"}}
{{else}}
{{svg "octicon-git-pull-request" 16 "text green"}}
{{end}}
{{end}}
{{else}}
{{if .IsClosed}}
{{svg "octicon-issue-closed" 16 "text red"}}
{{else}}
{{svg "octicon-issue-opened" 16 "text green"}}
{{end}}
{{end}}
</span>
<a class="project-board-title" href="{{$.RepoLink}}/issues/{{.Index}}">#{{.Index}} {{.Title}}</a>

正在加载...
取消
保存