diff options
author | vnkmpf <t.z@mail.com> | 2021-02-09 20:51:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 19:51:01 +0000 |
commit | 3a4801d1958ce33c9b893433c096281aa5b9b1c5 (patch) | |
tree | be43c76ff7a7f52368fcb0dc46b8c1773a127c07 /templates/user/dashboard | |
parent | b337c606d3669b3e2f9b805d6c74b593d6271414 (diff) | |
download | gitea-3a4801d1958ce33c9b893433c096281aa5b9b1c5.tar.gz gitea-3a4801d1958ce33c9b893433c096281aa5b9b1c5.zip |
Truncated organisations name #14583 (#14615)
- truncate to max length 40
- add CSS ellipsis
Diffstat (limited to 'templates/user/dashboard')
-rw-r--r-- | templates/user/dashboard/navbar.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl index 70eb7cce7f..c83ffde40a 100644 --- a/templates/user/dashboard/navbar.tmpl +++ b/templates/user/dashboard/navbar.tmpl @@ -4,7 +4,7 @@ <div class="ui floating dropdown link jump"> <span class="text"> {{avatar .ContextUser}} - {{.ContextUser.ShortName 20}} + {{.ContextUser.ShortName 40}} {{if .ContextUser.IsOrganization}} <span class="org-visibility"> {{if .ContextUser.Visibility.IsLimited}}<div class="ui orange tiny horizontal label">{{.i18n.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} @@ -20,12 +20,12 @@ <div class="scrolling menu items"> <a class="{{if eq .ContextUser.ID .SignedUser.ID}}active selected{{end}} item" href="{{AppSubUrl}}/{{if .PageIsIssues}}issues{{else if .PageIsPulls}}pulls{{else if .PageIsMilestonesDashboard}}milestones{{end}}"> {{avatar .SignedUser}} - {{.SignedUser.ShortName 20}} + {{.SignedUser.ShortName 40}} </a> {{range .Orgs}} <a class="{{if eq $.ContextUser.ID .ID}}active selected{{end}} item" title="{{.Name}}" href="{{AppSubUrl}}/org/{{.Name}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}"> {{avatar .}} - {{.ShortName 20}} + {{.ShortName 40}} <span class="org-visibility"> {{if .Visibility.IsLimited}}<div class="ui orange tiny horizontal label">{{$.i18n.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} {{if .Visibility.IsPrivate}}<div class="ui red tiny horizontal label">{{$.i18n.Tr "org.settings.visibility.private_shortname"}}</div>{{end}} @@ -94,7 +94,7 @@ {{end}} <div class="item"> <a class="ui blue basic button" href="{{.ContextUser.HomeLink}}" title='{{.i18n.Tr "home.view_home" .ContextUser.Name}}'> - {{.i18n.Tr "home.view_home" (.ContextUser.ShortName 20)}} + {{.i18n.Tr "home.view_home" (.ContextUser.ShortName 40)}} </a> </div> </div> |