diff options
author | Guido Diepen <site-github@guidodiepen.nl> | 2018-07-05 19:48:18 +0200 |
---|---|---|
committer | Jonas Franz <info@jonasfranz.software> | 2018-07-05 19:48:18 +0200 |
commit | 7c943b1cad5a75d4962eaf58291a8244e39534ab (patch) | |
tree | 279e661f57e86c20dd0841d182c0e41345d0b7f1 /models | |
parent | 5bc8782d33d81681ba18a4ec262a51d856e9975f (diff) | |
download | gitea-7c943b1cad5a75d4962eaf58291a8244e39534ab.tar.gz gitea-7c943b1cad5a75d4962eaf58291a8244e39534ab.zip |
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>
Diffstat (limited to 'models')
-rw-r--r-- | models/action.go | 6 |
1 files changed, 6 insertions, 0 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() |