]> source.dussan.org Git - gitea.git/commitdiff
fix news feed repo link
authorjiangjianxiao <jiangjianxiao@gmail.com>
Fri, 9 May 2014 06:42:50 +0000 (14:42 +0800)
committerjiangjianxiao <jiangjianxiao@gmail.com>
Fri, 9 May 2014 06:42:50 +0000 (14:42 +0800)
models/action.go
modules/base/template.go

index 6c18d022d092936dd2a272ac874ee135af64c177..62cff86277abb3cb7d13e2c487f3b1748c217ca0 100644 (file)
@@ -63,6 +63,10 @@ func (a Action) GetActEmail() string {
        return a.ActEmail
 }
 
+func (a Action) GetRepoUserName() string {
+       return a.RepoUserName
+}
+
 func (a Action) GetRepoName() string {
        return a.RepoName
 }
index 135be107f22e8d5da14d2d1b1cbcb3571fe994b2..b9449e30afbe147dbf2b70674f6f3043b71f2efa 100644 (file)
@@ -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() {