From 6eea301829eaddba8f64a821374996b2b41317fc Mon Sep 17 00:00:00 2001 From: Spencer Taylor Date: Tue, 6 Oct 2020 01:25:43 -0500 Subject: [PATCH] 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 Co-authored-by: techknowlogick --- options/locale/locale_en-US.ini | 2 ++ templates/org/header.tmpl | 5 ++++- templates/org/home.tmpl | 4 ++++ templates/user/dashboard/navbar.tmpl | 10 ++++++++++ web_src/less/_dashboard.less | 3 +++ web_src/less/_organization.less | 9 ++++++++- 6 files changed, 31 insertions(+), 2 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 7bb62250a4..2c6de37e60 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1869,7 +1869,9 @@ settings.repoadminchangeteam = Repository admin can add and remove access for te settings.visibility = Visibility settings.visibility.public = Public settings.visibility.limited = Limited (Visible to logged in users only) +settings.visibility.limited_shortname = Limited settings.visibility.private = Private (Visible only to organization members) +settings.visibility.private_shortname = Private settings.update_settings = Update Settings settings.update_setting_success = Organization settings have been updated. 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 @@
{{.DisplayName}} - + + {{if .Visibility.IsLimited}}
{{$.i18n.Tr "org.settings.visibility.limited_shortname"}}
{{end}} + {{if .Visibility.IsPrivate}}
{{$.i18n.Tr "org.settings.visibility.private_shortname"}}
{{end}} +