diff options
author | Spencer Taylor <smtaylorslc@gmail.com> | 2020-10-06 01:25:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 02:25:43 -0400 |
commit | 6eea301829eaddba8f64a821374996b2b41317fc (patch) | |
tree | 492858c49a365a0f41b9a7a49fb9f9b0d1a42c0a /templates/org | |
parent | df4bbcd235cec8708cd0cbdd9bcbdd00f5db4fd5 (diff) | |
download | gitea-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')
-rw-r--r-- | templates/org/header.tmpl | 5 | ||||
-rw-r--r-- | templates/org/home.tmpl | 4 |
2 files changed, 8 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"> diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index 01c1fe66b0..024be119bd 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -7,6 +7,10 @@ <div id="org-info"> <div class="ui header"> {{.Org.DisplayName}} + <span class="org-visibility"> + {{if .Org.Visibility.IsLimited}}<div class="ui large orange horizontal label">{{.i18n.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} + {{if .Org.Visibility.IsPrivate}}<div class="ui large red horizontal label">{{.i18n.Tr "org.settings.visibility.private_shortname"}}</div>{{end}} + </span> {{if .IsOrganizationOwner}}<a class="middle text grey" href="{{.OrgLink}}/settings">{{svg "octicon-gear"}}</a>{{end}} </div> {{if .Org.Description}}<p class="desc">{{.Org.Description}}</p>{{end}} |