@ -7,8 +7,8 @@
<span class="truncated-item-name"> {{ .ContextUser .ShortName 4 0 }} </span>
<span class="truncated-item-name"> {{ .ContextUser .ShortName 4 0 }} </span>
{{ if .ContextUser .IsOrganization }}
{{ if .ContextUser .IsOrganization }}
<span class="org-visibility">
<span class="org-visibility">
{{ if .ContextUser .Visibility .IsLimited }} <div class="ui orange tiny horizontal label">{{ .locale .Tr "org.settings.visibility.limited_shortname" }} </div> {{ end }}
{{ 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 red tiny horizontal label">{{ .locale .Tr "org.settings.visibility.private_shortname" }} </div> {{ end }}
{{ if .ContextUser .Visibility .IsPrivate }} <div class="ui basic tiny horizontal label">{{ .locale .Tr "org.settings.visibility.private_shortname" }} </div> {{ end }}
</span>
</span>
{{ end }}
{{ end }}
{{ svg "octicon-triangle-down" 1 4 "dropdown icon" }}
{{ svg "octicon-triangle-down" 1 4 "dropdown icon" }}
@ -27,8 +27,8 @@
{{ avatar . }}
{{ avatar . }}
<span class="truncated-item-name"> {{ .ShortName 4 0 }} </span>
<span class="truncated-item-name"> {{ .ShortName 4 0 }} </span>
<span class="org-visibility">
<span class="org-visibility">
{{ if .Visibility .IsLimited }} <div class="ui orange tiny horizontal label">{{ $ .locale .Tr "org.settings.visibility.limited_shortname" }} </div> {{ end }}
{{ if .Visibility .IsLimited }} <div class="ui basic tiny horizontal label">{{ $ .locale .Tr "org.settings.visibility.limited_shortname" }} </div> {{ end }}
{{ if .Visibility .IsPrivate }} <div class="ui red tiny horizontal label">{{ $ .locale .Tr "org.settings.visibility.private_shortname" }} </div> {{ end }}
{{ if .Visibility .IsPrivate }} <div class="ui basic tiny horizontal label">{{ $ .locale .Tr "org.settings.visibility.private_shortname" }} </div> {{ end }}
</span>
</span>
</a>
</a>
{{ end }}
{{ end }}