From 23d2168a0f2bd0dc5a2a677cebe228137a624fa6 Mon Sep 17 00:00:00 2001 From: Phil Renaud Date: Mon, 17 Jun 2024 14:34:27 -0400 Subject: [PATCH] Helios page headers added to the administration section --- .../namespaces/acl-namespace.hbs | 33 +++++++++---------- .../administration/namespaces/new.hbs | 8 ++--- .../templates/administration/policies/new.hbs | 6 ++-- .../administration/policies/policy.hbs | 16 ++++----- ui/app/templates/administration/roles/new.hbs | 6 ++-- .../templates/administration/roles/role.hbs | 18 +++++----- .../sentinel-policies/policy.hbs | 8 ++--- .../templates/administration/tokens/new.hbs | 6 ++-- .../templates/administration/tokens/token.hbs | 18 +++++----- 9 files changed, 60 insertions(+), 59 deletions(-) diff --git a/ui/app/templates/administration/namespaces/acl-namespace.hbs b/ui/app/templates/administration/namespaces/acl-namespace.hbs index 77a8f2c7ba1..8a2223b5ee4 100644 --- a/ui/app/templates/administration/namespaces/acl-namespace.hbs +++ b/ui/app/templates/administration/namespaces/acl-namespace.hbs @@ -6,14 +6,12 @@ {{page-title "Namespace"}}
-

-
- {{this.model.name}} -
- {{#if (and (not (eq this.model.name "default")) (can "destroy namespace"))}} - + {{this.model.name}} + {{#if (and (not (eq this.model.name "default")) (can "destroy namespace"))}} + + - {{/if}} -

+ + {{/if}} + - - Related Resources - - View this namespace's <jobs - or <variables. - - + + Related Resources + + View this namespace's <jobs + or <variables. + + - +
diff --git a/ui/app/templates/administration/namespaces/new.hbs b/ui/app/templates/administration/namespaces/new.hbs index 613ce099254..d2cbba0fd76 100644 --- a/ui/app/templates/administration/namespaces/new.hbs +++ b/ui/app/templates/administration/namespaces/new.hbs @@ -6,8 +6,8 @@ {{page-title "Create Namespace"}}
-

- Create Namespace -

- + + Create Namespace + +
diff --git a/ui/app/templates/administration/policies/new.hbs b/ui/app/templates/administration/policies/new.hbs index 7b84fc665ab..ba1e1f3e262 100644 --- a/ui/app/templates/administration/policies/new.hbs +++ b/ui/app/templates/administration/policies/new.hbs @@ -6,9 +6,9 @@ {{page-title "Create Policy"}}
-

- Create Policy -

+ + Create Policy + diff --git a/ui/app/templates/administration/policies/policy.hbs b/ui/app/templates/administration/policies/policy.hbs index b73550bdccf..ab46d2b0430 100644 --- a/ui/app/templates/administration/policies/policy.hbs +++ b/ui/app/templates/administration/policies/policy.hbs @@ -6,12 +6,10 @@ {{page-title "Policy"}}
-

-
- {{this.policy.name}} -
- {{#if (can "destroy policy")}} -
+ + {{this.policy.name}} + {{#if (can "destroy policy")}} + -
- {{/if}} -

+ + {{/if}} + diff --git a/ui/app/templates/administration/roles/new.hbs b/ui/app/templates/administration/roles/new.hbs index ac144bd88bc..47b113a78c0 100644 --- a/ui/app/templates/administration/roles/new.hbs +++ b/ui/app/templates/administration/roles/new.hbs @@ -6,9 +6,9 @@ {{page-title "Create Role"}}
-

- Create Role -

+ + Create Role + {{#if this.model.policies.length}} {{page-title "Role"}}
-

-
- Edit Role -
- {{#if (can "destroy role")}} - + + {{this.role.name}} + + {{#if (can "destroy role")}} + + - {{/if}} -

+ + {{/if}} + {{this.model.name}} - - {{#if (can "destroy sentinel-policy")}} + {{#if (can "destroy sentinel-policy")}} +
- {{/if}} -
+
+ {{/if}}
diff --git a/ui/app/templates/administration/tokens/new.hbs b/ui/app/templates/administration/tokens/new.hbs index 32545da73a5..1e6135c5ff8 100644 --- a/ui/app/templates/administration/tokens/new.hbs +++ b/ui/app/templates/administration/tokens/new.hbs @@ -6,9 +6,9 @@ {{page-title "Create Token"}}
-

- Create Token -

+ + Create Token + {{page-title "Token"}}
-

-
- Edit Token -
- {{#if (can "destroy token")}} - + + Edit Token + + {{#if (can "destroy token")}} + + - {{/if}} -

+ + {{/if}} +