diff options
author | Xaver Maierhofer <xaver.maierhofer@xwissen.info> | 2019-05-13 22:52:59 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-05-13 23:52:58 +0300 |
commit | 597ac064c3cb5931bc98b3dea6d742e08cb9fc11 (patch) | |
tree | e5967495b2d2c6b5042d8bf7f44402ff9a7f79d5 /templates/user | |
parent | 06ae9a3a963cff8d296ca5806df611d1091847df (diff) | |
download | gitea-597ac064c3cb5931bc98b3dea6d742e08cb9fc11.tar.gz gitea-597ac064c3cb5931bc98b3dea6d742e08cb9fc11.zip |
Style orgs list in user profile (#6911)
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/profile.tmpl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 6170c6d130..833de90b8c 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -69,11 +69,15 @@ */}} {{if and .Orgs .HasOrgsVisible}} <li> + <ul class="user-orgs"> {{range .Orgs}} {{if (or .Visibility.IsPublic (and ($.SignedUser) (or .Visibility.IsLimited (and (.IsUserPartOfOrg $.SignedUserID) .Visibility.IsPrivate) ($.IsAdmin))))}} - <a href="{{.HomeLink}}"><img class="ui mini image poping up" src="{{.RelAvatarLink}}" data-content="{{.Name}}" data-position="top center" data-variation="tiny inverted"></a> + <li> + <a href="{{.HomeLink}}"><img class="ui image poping up" src="{{.RelAvatarLink}}" data-content="{{.Name}}" data-position="top center" data-variation="tiny inverted"></a> + </li> {{end}} {{end}} + </ul> </li> {{end}} {{if and .IsSigned (ne .SignedUserName .Owner.Name)}} |