Browse Source

fix news feed repo link

pull/168/head
jiangjianxiao 11 years ago
parent
commit
501f70e248
  1. 4
      models/action.go
  2. 4
      modules/base/template.go

4
models/action.go

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

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

Loading…
Cancel
Save