From 912f7b51e90b2e6c4ff01570f1413c736cfc4d04 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 22 Feb 2016 12:40:00 -0500 Subject: #1821 add actions for close and reopen issues --- templates/.VERSION | 2 +- templates/user/dashboard/feeds.tmpl | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/.VERSION b/templates/.VERSION index fc515614..92794482 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.8.41.0221 \ No newline at end of file +0.8.42.0222 \ No newline at end of file diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index 17b40d95..7bb83d66 100644 --- a/templates/user/dashboard/feeds.tmpl +++ b/templates/user/dashboard/feeds.tmpl @@ -31,6 +31,12 @@ {{else if eq .GetOpType 11}} {{ $index := index .GetIssueInfos 0}} {{$.i18n.Tr "action.merge_pull_request" .GetRepoLink $index .ShortRepoPath | Str2html}} + {{else if eq .GetOpType 12}} + {{ $index := index .GetIssueInfos 0}} + {{$.i18n.Tr "action.close_issue" .GetRepoLink $index .ShortRepoPath | Str2html}} + {{else if eq .GetOpType 13}} + {{ $index := index .GetIssueInfos 0}} + {{$.i18n.Tr "action.reopen_issue" .GetRepoLink $index .ShortRepoPath | Str2html}} {{end}}
{{if eq .GetOpType 5}} @@ -55,6 +61,8 @@{{index .GetIssueInfos 1}}
{{else if eq .GetOpType 11}}{{index .GetIssueInfos 1}}
+ {{else if (or (eq .GetOpType 12) (eq .GetOpType 13))}} + {{.GetIssueTitle}} {{end}}{{TimeSince .GetCreate $.i18n.Lang}}
-- cgit v1.2.3