- {{avatar .ContextUser}}
+ {{avatar $.Context .ContextUser}}
{{.ContextUser.ShortName 40}}
- {{if .ContextUser.IsOrganization}}
-
- {{if .ContextUser.Visibility.IsLimited}}{{.i18n.Tr "org.settings.visibility.limited_shortname"}}
{{end}}
- {{if .ContextUser.Visibility.IsPrivate}}{{.i18n.Tr "org.settings.visibility.private_shortname"}}
{{end}}
-
- {{end}}
+
+ {{if .ContextUser.Visibility.IsLimited}}{{$.locale.Tr "org.settings.visibility.limited_shortname"}}
{{end}}
+ {{if .ContextUser.Visibility.IsPrivate}}{{$.locale.Tr "org.settings.visibility.private_shortname"}}
{{end}}
+
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
@@ -49,17 +51,17 @@
{{if .Team}}
{{.Team.Name}}
{{else}}
- {{.i18n.Tr "org.teams"}}
+ {{$.locale.Tr "org.teams"}}
{{end}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}