Skip to content

Commit 9ef8bfb

Browse files
yp053276543lunny
authored
set user dashboard org visibility to basic (#22706)
Same to #22674 and #22605 Sorry to create 3 PR to fix this. I checked all span with class `org-visibility`, i think this is the last one :) And I found that private/limited user has no private/limited tag in dashboard. but org does. If it is ok i will add this feature in another pr. Co-authored-by: 6543 <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
1 parent c46f53a commit 9ef8bfb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/user/dashboard/navbar.tmpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
88
{{if .ContextUser.IsOrganization}}
99
<span class="org-visibility">
10-
{{if .ContextUser.Visibility.IsLimited}}<div class="ui orange tiny horizontal label">{{.locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}}
11-
{{if .ContextUser.Visibility.IsPrivate}}<div class="ui red tiny horizontal label">{{.locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}}
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}}
1212
</span>
1313
{{end}}
1414
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
@@ -27,8 +27,8 @@
2727
{{avatar .}}
2828
<span class="truncated-item-name">{{.ShortName 40}}</span>
2929
<span class="org-visibility">
30-
{{if .Visibility.IsLimited}}<div class="ui orange tiny horizontal label">{{$.locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}}
31-
{{if .Visibility.IsPrivate}}<div class="ui red tiny horizontal label">{{$.locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}}
30+
{{if .Visibility.IsLimited}}<div class="ui basic tiny horizontal label">{{$.locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}}
31+
{{if .Visibility.IsPrivate}}<div class="ui basic tiny horizontal label">{{$.locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}}
3232
</span>
3333
</a>
3434
{{end}}

0 commit comments

Comments
 (0)