summaryrefslogtreecommitdiffstats
path: root/templates/projects
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-05-25 14:25:31 +0200
committerGitHub <noreply@github.com>2023-05-25 14:25:31 +0200
commit79087bdb2676ac383f4bd21137d4454f7a26c8c4 (patch)
treea3d61ded321b4b7a9f20e97f409ab5e9eea03bb2 /templates/projects
parent033d92997fc16baee097d2b25f08e0984e628abd (diff)
downloadgitea-79087bdb2676ac383f4bd21137d4454f7a26c8c4.tar.gz
gitea-79087bdb2676ac383f4bd21137d4454f7a26c8c4.zip
Use `shared/issueicon` template in projects (#24922)
We can reuse the recently created subtemplate here. I also checked the whole templates for similar constructs, these appear to be the only one. Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/projects')
-rw-r--r--templates/projects/view.tmpl20
1 files changed, 2 insertions, 18 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}}