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 <site-github@guidodiepen.nl>
This commit is contained in:
parent
5bc8782d33
commit
7c943b1cad
2 changed files with 7 additions and 1 deletions
|
@ -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.
|
// GetActUserName gets the action's user name.
|
||||||
func (a *Action) GetActUserName() string {
|
func (a *Action) GetActUserName() string {
|
||||||
a.loadActUser()
|
a.loadActUser()
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<div class="ui thirteen wide column">
|
<div class="ui thirteen wide column">
|
||||||
<div class="{{if eq .GetOpType 5}}push news{{end}}">
|
<div class="{{if eq .GetOpType 5}}push news{{end}}">
|
||||||
<p>
|
<p>
|
||||||
<a href="{{AppSubUrl}}/{{.GetActUserName}}">{{.ShortActUserName}}</a>
|
<a href="{{AppSubUrl}}/{{.GetActUserName}}" title="{{.GetActFullName}}">{{.ShortActUserName}}</a>
|
||||||
{{if eq .GetOpType 1}}
|
{{if eq .GetOpType 1}}
|
||||||
{{$.i18n.Tr "action.create_repo" .GetRepoLink .ShortRepoPath | Str2html}}
|
{{$.i18n.Tr "action.create_repo" .GetRepoLink .ShortRepoPath | Str2html}}
|
||||||
{{else if eq .GetOpType 2}}
|
{{else if eq .GetOpType 2}}
|
||||||
|
|
Reference in a new issue