summaryrefslogtreecommitdiffstats
path: root/modules/template/template.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-22 12:40:00 -0500
committerUnknwon <u@gogs.io>2016-02-22 12:40:00 -0500
commit912f7b51e90b2e6c4ff01570f1413c736cfc4d04 (patch)
tree9f618018d3f35a090432b04dd7ad962460e4a41f /modules/template/template.go
parent90fab0be6bc5acce1faa4b97a85ddde5f37f31d9 (diff)
downloadgitea-912f7b51e90b2e6c4ff01570f1413c736cfc4d04.tar.gz
gitea-912f7b51e90b2e6c4ff01570f1413c736cfc4d04.zip
#1821 add actions for close and reopen issues
Diffstat (limited to 'modules/template/template.go')
-rw-r--r--modules/template/template.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/template/template.go b/modules/template/template.go
index 52ec054500..d2f82f0d27 100644
--- a/modules/template/template.go
+++ b/modules/template/template.go
@@ -229,11 +229,11 @@ type Actioner interface {
// and returns a icon class name.
func ActionIcon(opType int) string {
switch opType {
- case 1, 8: // Create, transfer repository
+ case 1, 8: // Create and transfer repository
return "repo"
case 5, 9: // Commit repository
return "git-commit"
- case 6: // Create issue
+ case 6, 13: // Create and reopen issue
return "issue-opened"
case 7: // New pull request
return "git-pull-request"
@@ -241,6 +241,8 @@ func ActionIcon(opType int) string {
return "comment"
case 11: // Merge pull request
return "git-merge"
+ case 12: // Close issue
+ return "issue-closed"
default:
return "invalid type"
}