Skip to content

Commit 7c943b1

Browse files
gdiepenjonasfranz
authored andcommitted
Implemented hover text showing user FullName (#4261)
For each action that is displayed in either the public activity overview of a user, or in the dashboard overview, the link to the username is now extended with a title attribute to show the FullName as hover text Signed-off-by: Guido Diepen <[email protected]>
1 parent 5bc8782 commit 7c943b1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

models/action.go

+6
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ func (a *Action) loadRepo() {
122122
}
123123
}
124124

125+
// GetActFullName gets the action's user full name.
126+
func (a *Action) GetActFullName() string {
127+
a.loadActUser()
128+
return a.ActUser.FullName
129+
}
130+
125131
// GetActUserName gets the action's user name.
126132
func (a *Action) GetActUserName() string {
127133
a.loadActUser()

templates/user/dashboard/feeds.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="ui thirteen wide column">
88
<div class="{{if eq .GetOpType 5}}push news{{end}}">
99
<p>
10-
<a href="{{AppSubUrl}}/{{.GetActUserName}}">{{.ShortActUserName}}</a>
10+
<a href="{{AppSubUrl}}/{{.GetActUserName}}" title="{{.GetActFullName}}">{{.ShortActUserName}}</a>
1111
{{if eq .GetOpType 1}}
1212
{{$.i18n.Tr "action.create_repo" .GetRepoLink .ShortRepoPath | Str2html}}
1313
{{else if eq .GetOpType 2}}

0 commit comments

Comments
 (0)