aboutsummaryrefslogtreecommitdiff
path: root/modules/base/template.go
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-05-09 05:15:28 -0400
committer无闻 <joe2010xtmf@163.com>2014-05-09 05:15:28 -0400
commit43ffacd05b7b5c9d7b4966f4404a7dc53f2229aa (patch)
treea1807e1feafe9c42bedfde606f61a0447267a90a /modules/base/template.go
parent09dba7d63edb0b34e62bf264077a66ef365638c9 (diff)
parent501f70e248660d51e5eb8f2343b1a19db8679c21 (diff)
Merge pull request #168 from jiangjianxiao/dev
fix news feed repo link
Diffstat (limited to 'modules/base/template.go')
-rw-r--r--modules/base/template.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/base/template.go b/modules/base/template.go
index 135be107..b9449e30 100644
--- a/modules/base/template.go
+++ b/modules/base/template.go
@@ -100,6 +100,7 @@ type Actioner interface {
GetOpType() int
GetActUserName() string
GetActEmail() string
+ GetRepoUserName() string
GetRepoName() string
GetBranch() string
GetContent() string
@@ -153,8 +154,9 @@ type PushCommits struct {
func ActionDesc(act Actioner) string {
actUserName := act.GetActUserName()
email := act.GetActEmail()
+ repoUserName := act.GetRepoUserName()
repoName := act.GetRepoName()
- repoLink := actUserName + "/" + repoName
+ repoLink := repoUserName + "/" + repoName
branch := act.GetBranch()
content := act.GetContent()
switch act.GetOpType() {