From 74a935754f4aeffba9144af62607ee8c82c03501 Mon Sep 17 00:00:00 2001 From: HesterG Date: Fri, 21 Jul 2023 10:23:31 +0800 Subject: [PATCH 1/7] categorize admin settings --- options/locale/locale_en-US.ini | 3 ++ templates/admin/navbar.tmpl | 76 ++++++++++++++++++++++----------- 2 files changed, 53 insertions(+), 26 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 5f671676b585..fa515c013549 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2627,10 +2627,13 @@ teams.invite.description = Please click the button below to join the team. [admin] dashboard = Dashboard +organization_structure = Organization Structure users = User Accounts organizations = Organizations +assets = Code Assets repositories = Repositories hooks = Webhooks +integrations = Integrations authentication = Authentication Sources emails = User Emails config = Configuration diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl index 641d3fad81f8..0474f108044e 100644 --- a/templates/admin/navbar.tmpl +++ b/templates/admin/navbar.tmpl @@ -4,35 +4,59 @@ {{.locale.Tr "admin.dashboard"}} - - {{.locale.Tr "admin.users"}} - - - {{.locale.Tr "admin.organizations"}} - - - {{.locale.Tr "admin.repositories"}} - - {{if .EnablePackages}} - - {{.locale.Tr "packages.title"}} - - {{end}} - {{if not DisableWebhooks}} +
+ {{.locale.Tr "admin.organization_structure"}} + +
+
+ {{.locale.Tr "admin.assets"}} + +
+ {{if and (not DisableWebhooks) .EnableOAuth2}} +
+ {{.locale.Tr "admin.integrations"}} + +
+ {{else}} + {{if not DisableWebhooks}} {{.locale.Tr "admin.hooks"}} - {{end}} - - {{.locale.Tr "admin.authentication"}} - - - {{.locale.Tr "admin.emails"}} - - {{if .EnableOAuth2}} - - {{.locale.Tr "settings.applications"}} - + {{end}} + {{if .EnableOAuth2}} + + {{.locale.Tr "settings.applications"}} + + {{end}} {{end}} {{if .EnableActions}}
From 5e7c5cbbecaa81409a890347012f54f5ad0fa6ab Mon Sep 17 00:00:00 2001 From: HesterG Date: Fri, 21 Jul 2023 10:58:35 +0800 Subject: [PATCH 2/7] comment --- templates/admin/navbar.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl index 0474f108044e..65dccebae3ba 100644 --- a/templates/admin/navbar.tmpl +++ b/templates/admin/navbar.tmpl @@ -34,6 +34,7 @@ {{end}}
+ {{if and (not DisableWebhooks) .EnableOAuth2}}
{{.locale.Tr "admin.integrations"}} From 89682903212a8ed052b2c0e41f209b79b0890897 Mon Sep 17 00:00:00 2001 From: HesterG Date: Fri, 21 Jul 2023 11:38:47 +0800 Subject: [PATCH 3/7] lint --- templates/admin/navbar.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl index 9176f93534cc..1ad4c4377e75 100644 --- a/templates/admin/navbar.tmpl +++ b/templates/admin/navbar.tmpl @@ -57,7 +57,7 @@ {{.locale.Tr "settings.applications"}} - {{end}} + {{end}} {{end}} {{if .EnableActions}}
From b6b002a3f83d4ea6b820f3c0f270a7b6874fc422 Mon Sep 17 00:00:00 2001 From: HesterG Date: Fri, 21 Jul 2023 16:02:47 +0800 Subject: [PATCH 4/7] updaye --- options/locale/locale_en-US.ini | 2 +- templates/admin/navbar.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index fa515c013549..052f2d8c60d6 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2627,7 +2627,7 @@ teams.invite.description = Please click the button below to join the team. [admin] dashboard = Dashboard -organization_structure = Organization Structure +indetity_access = Identity & Access users = User Accounts organizations = Organizations assets = Code Assets diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl index 1ad4c4377e75..a72ee4d91d5c 100644 --- a/templates/admin/navbar.tmpl +++ b/templates/admin/navbar.tmpl @@ -5,7 +5,7 @@ {{.locale.Tr "admin.dashboard"}}
- {{.locale.Tr "admin.organization_structure"}} + {{.locale.Tr "admin.indetity_access"}}