1
0
Fork 0
forked from forgejo/forgejo

#1821 add actions for close and reopen issues

This commit is contained in:
Unknwon 2016-02-22 12:40:00 -05:00
parent 90fab0be6b
commit 912f7b51e9
12 changed files with 68 additions and 46 deletions

View file

@ -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"
}