diff options
author | Unknwon <u@gogs.io> | 2016-02-22 12:40:00 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-22 12:40:00 -0500 |
commit | 912f7b51e90b2e6c4ff01570f1413c736cfc4d04 (patch) | |
tree | 9f618018d3f35a090432b04dd7ad962460e4a41f /templates/user/dashboard | |
parent | 90fab0be6bc5acce1faa4b97a85ddde5f37f31d9 (diff) | |
download | gitea-912f7b51e90b2e6c4ff01570f1413c736cfc4d04.tar.gz gitea-912f7b51e90b2e6c4ff01570f1413c736cfc4d04.zip |
#1821 add actions for close and reopen issues
Diffstat (limited to 'templates/user/dashboard')
-rw-r--r-- | templates/user/dashboard/feeds.tmpl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index 17b40d9535..7bb83d665b 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}} </p> {{if eq .GetOpType 5}} @@ -55,6 +61,8 @@ <p class="text light grey">{{index .GetIssueInfos 1}}</p> {{else if eq .GetOpType 11}} <p class="text light grey">{{index .GetIssueInfos 1}}</p> + {{else if (or (eq .GetOpType 12) (eq .GetOpType 13))}} + <span class="text truncate issue title">{{.GetIssueTitle}}</span> {{end}} <p class="text italic light grey">{{TimeSince .GetCreate $.i18n.Lang}}</p> </div> |