diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-25 16:36:19 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-25 16:36:19 -0400 |
commit | f69761563b7a4fe9ace2a1643391cbcf9b92b372 (patch) | |
tree | 23d5bf522788895c4659c55f1e8275d9b9ab9e0b /modules | |
parent | 57d48fb6a2fb34f5da1aa702c33bc9c268e29f71 (diff) | |
download | gitea-f69761563b7a4fe9ace2a1643391cbcf9b92b372.tar.gz gitea-f69761563b7a4fe9ace2a1643391cbcf9b92b372.zip |
Fix bug on transfer repo
Diffstat (limited to 'modules')
-rw-r--r-- | modules/base/template.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/base/template.go b/modules/base/template.go index ec41914937..b1c8c161d3 100644 --- a/modules/base/template.go +++ b/modules/base/template.go @@ -149,14 +149,12 @@ type Actioner interface { // and returns a icon class name. func ActionIcon(opType int) string { switch opType { - case 1: // Create repository. + case 1, 8: // Create, transfer repository. return "repo" case 5, 9: // Commit repository. return "git-commit" case 6: // Create issue. return "issue-opened" - case 8: // Transfer repository. - return "share" case 10: // Comment issue. return "comment" default: @@ -164,7 +162,7 @@ func ActionIcon(opType int) string { } } -// TODO: Legacy +// FIXME: Legacy const ( TPL_CREATE_REPO = `<a href="%s/user/%s">%s</a> created repository <a href="%s">%s</a>` TPL_COMMIT_REPO = `<a href="%s/user/%s">%s</a> pushed to <a href="%s/src/%s">%s</a> at <a href="%s">%s</a>%s` @@ -197,7 +195,7 @@ func ActionContent2Commits(act Actioner) *PushCommits { return push } -// TODO: Legacy +// FIXME: Legacy // ActionDesc accepts int that represents action operation type // and returns the description. func ActionDesc(act Actioner) string { |