summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/projects/view.tmpl20
-rw-r--r--templates/repo/projects/view.tmpl20
2 files changed, 4 insertions, 36 deletions
diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl
index 014a748317..a7209e0c21 100644
--- a/templates/projects/view.tmpl
+++ b/templates/projects/view.tmpl
@@ -192,24 +192,8 @@
{{end}}
<div class="content gt-p-0">
<div class="header">
- <span class="gt-dif gt-ac gt-vm {{if .IsClosed}}red{{else}}green{{end}}">
- {{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 class="gt-dif gt-ac gt-vm">
+ {{template "shared/issueicon" .}}
</span>
<a class="project-board-title gt-vm" href="{{.Link}}">
{{.Title}}
diff --git a/templates/repo/projects/view.tmpl b/templates/repo/projects/view.tmpl
index f297470d25..aa76252832 100644
--- a/templates/repo/projects/view.tmpl
+++ b/templates/repo/projects/view.tmpl
@@ -198,24 +198,8 @@
{{end}}
<div class="content gt-p-0">
<div class="header">
- <span class="gt-dif gt-ac gt-vm {{if .IsClosed}}red{{else}}green{{end}}">
- {{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 class="gt-dif gt-ac gt-vm">
+ {{template "shared/issueicon" .}}
</span>
<a class="project-board-title gt-vm" href="{{.Link}}">
{{.Title}}