0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-29 06:04:36 +01:00

Merge pull request #168 from jiangjianxiao/dev

fix news feed repo link
This commit is contained in:
无闻 2014-05-09 05:15:28 -04:00
commit 43ffacd05b
2 changed files with 7 additions and 1 deletions

View 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
}

View 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() {