File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 5
5
<span class="text truncated-item-container">
6
6
{{avatar $.Context .ContextUser}}
7
7
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
8
- {{if .ContextUser.IsOrganization}}
9
- <span class="org-visibility">
10
- {{if .ContextUser.Visibility.IsLimited}}<div class="ui basic tiny horizontal label">{{.locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}}
11
- {{if .ContextUser.Visibility.IsPrivate}}<div class="ui basic tiny horizontal label">{{.locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}}
12
- </span>
13
- {{end}}
8
+ <span class="org-visibility">
9
+ {{if .ContextUser.Visibility.IsLimited}}<div class="ui basic tiny horizontal label">{{.locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}}
10
+ {{if .ContextUser.Visibility.IsPrivate}}<div class="ui basic tiny horizontal label">{{.locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}}
11
+ </span>
14
12
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
15
13
</span>
16
14
<div class="context user overflow menu" tabindex="-1">
21
19
<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}}">
22
20
{{avatar $.Context .SignedUser}}
23
21
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
22
+ <span class="org-visibility">
23
+ {{if .ContextUser.Visibility.IsLimited}}<div class="ui basic tiny horizontal label">{{$.locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}}
24
+ {{if .ContextUser.Visibility.IsPrivate}}<div class="ui basic tiny horizontal label">{{$.locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}}
25
+ </span>
24
26
</a>
25
27
{{range .Orgs}}
26
28
<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}}">
You can’t perform that action at this time.
0 commit comments