summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/action.go6
-rw-r--r--templates/user/dashboard/feeds.tmpl2
2 files changed, 7 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go
index c3ed9c7c02..a6fb209a41 100644
--- a/models/action.go
+++ b/models/action.go
@@ -122,6 +122,12 @@ func (a *Action) loadRepo() {
}
}
+// GetActFullName gets the action's user full name.
+func (a *Action) GetActFullName() string {
+ a.loadActUser()
+ return a.ActUser.FullName
+}
+
// GetActUserName gets the action's user name.
func (a *Action) GetActUserName() string {
a.loadActUser()
diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl
index bdd6c34820..d9082a0f12 100644
--- a/templates/user/dashboard/feeds.tmpl
+++ b/templates/user/dashboard/feeds.tmpl
@@ -7,7 +7,7 @@
<div class="ui thirteen wide column">
<div class="{{if eq .GetOpType 5}}push news{{end}}">
<p>
- <a href="{{AppSubUrl}}/{{.GetActUserName}}">{{.ShortActUserName}}</a>
+ <a href="{{AppSubUrl}}/{{.GetActUserName}}" title="{{.GetActFullName}}">{{.ShortActUserName}}</a>
{{if eq .GetOpType 1}}
{{$.i18n.Tr "action.create_repo" .GetRepoLink .ShortRepoPath | Str2html}}
{{else if eq .GetOpType 2}}