|
|
|
@ -5,12 +5,10 @@ |
|
|
|
|
<span class="text truncated-item-container"> |
|
|
|
|
{{avatar $.Context .ContextUser}} |
|
|
|
|
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> |
|
|
|
|
{{if .ContextUser.IsOrganization}} |
|
|
|
|
<span class="org-visibility"> |
|
|
|
|
{{if .ContextUser.Visibility.IsLimited}}<div class="ui basic tiny horizontal label">{{.locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} |
|
|
|
|
{{if .ContextUser.Visibility.IsPrivate}}<div class="ui basic tiny horizontal label">{{.locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}} |
|
|
|
|
</span> |
|
|
|
|
{{end}} |
|
|
|
|
<span class="org-visibility"> |
|
|
|
|
{{if .ContextUser.Visibility.IsLimited}}<div class="ui basic tiny horizontal label">{{.locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} |
|
|
|
|
{{if .ContextUser.Visibility.IsPrivate}}<div class="ui basic tiny horizontal label">{{.locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}} |
|
|
|
|
</span> |
|
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}} |
|
|
|
|
</span> |
|
|
|
|
<div class="context user overflow menu" tabindex="-1"> |
|
|
|
@ -21,6 +19,10 @@ |
|
|
|
|
<a class="{{if eq .ContextUser.ID .SignedUser.ID}}active selected{{end}} item truncated-item-container" href="{{AppSubUrl}}/{{if .PageIsIssues}}issues{{else if .PageIsPulls}}pulls{{else if .PageIsMilestonesDashboard}}milestones{{end}}"> |
|
|
|
|
{{avatar $.Context .SignedUser}} |
|
|
|
|
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> |
|
|
|
|
<span class="org-visibility"> |
|
|
|
|
{{if .ContextUser.Visibility.IsLimited}}<div class="ui basic tiny horizontal label">{{$.locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} |
|
|
|
|
{{if .ContextUser.Visibility.IsPrivate}}<div class="ui basic tiny horizontal label">{{$.locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}} |
|
|
|
|
</span> |
|
|
|
|
</a> |
|
|
|
|
{{range .Orgs}} |
|
|
|
|
<a class="{{if eq $.ContextUser.ID .ID}}active selected{{end}} item truncated-item-container" title="{{.Name}}" href="{{.OrganisationLink}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}"> |
|
|
|
|