From 1984b6a11b2e6f9a2aac795b3463d5c03400f435 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 17 Aug 2020 21:11:42 +0200 Subject: [PATCH] Milestone Issue/Pull List: Add octicons type (#12499) * add octicons based on issue type (pull|issue) * handle IsRead again * short code Co-authored-by: techknowlogick --- templates/repo/issue/milestone_issues.tmpl | 28 +++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl index 00d335da7d..8aecf8d773 100644 --- a/templates/repo/issue/milestone_issues.tmpl +++ b/templates/repo/issue/milestone_issues.tmpl @@ -188,7 +188,33 @@ {{end}} -
#{{.Index}}
+ + {{if .IsClosed}} + {{if .IsPull}} + {{if .PullRequest.HasMerged}} +
#{{.Index}}
+ {{svg "octicon-git-pull-request" 16}} + {{else}} +
#{{.Index}}
+ {{svg "octicon-git-pull-request" 16}} + {{end}} + {{else}} +
#{{.Index}}
+ {{svg "octicon-issue-closed" 16}} + {{end}} + {{else}} + {{if .IsRead}} +
#{{.Index}}
+ {{else}} +
#{{.Index}}
+ {{end}} + {{if .IsPull}} + {{svg "octicon-git-pull-request" 16}} + {{else}} + {{svg "octicon-issue-opened" 16}} + {{end}} + {{end}} + {{.Title | RenderEmoji}} {{if .IsPull }}