summaryrefslogtreecommitdiffstats
path: root/templates/org/header.tmpl
diff options
context:
space:
mode:
authorSpencer Taylor <smtaylorslc@gmail.com>2020-10-06 01:25:43 -0500
committerGitHub <noreply@github.com>2020-10-06 02:25:43 -0400
commit6eea301829eaddba8f64a821374996b2b41317fc (patch)
tree492858c49a365a0f41b9a7a49fb9f9b0d1a42c0a /templates/org/header.tmpl
parentdf4bbcd235cec8708cd0cbdd9bcbdd00f5db4fd5 (diff)
downloadgitea-6eea301829eaddba8f64a821374996b2b41317fc.tar.gz
gitea-6eea301829eaddba8f64a821374996b2b41317fc.zip
Adding visual cue for "Limited" & "Private" organizations. (#13040)
* Adding visual cue for "Limited" & "Private" organizations. * Moving org visibility CSS styles to .less files. Co-authored-by: Gitea <gitea@fake.local> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/org/header.tmpl')
-rw-r--r--templates/org/header.tmpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/org/header.tmpl b/templates/org/header.tmpl
index 17cc58fcbb..e232726822 100644
--- a/templates/org/header.tmpl
+++ b/templates/org/header.tmpl
@@ -5,7 +5,10 @@
<div class="ui header">
<img class="ui image" src="{{.SizedRelAvatarLink 100}}">
<span class="text thin grey"><a href="{{.HomeLink}}">{{.DisplayName}}</a></span>
-
+ <span class="org-visibility">
+ {{if .Visibility.IsLimited}}<div class="ui medium orange horizontal label">{{$.i18n.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}}
+ {{if .Visibility.IsPrivate}}<div class="ui medium red horizontal label">{{$.i18n.Tr "org.settings.visibility.private_shortname"}}</div>{{end}}
+ </span>
<div class="ui right">
<div class="ui menu">
<a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members">