diff --git a/templates/org/settings/actions_general.tmpl b/templates/org/settings/actions_general.tmpl index 374e0cf46d..e98f895f9b 100644 --- a/templates/org/settings/actions_general.tmpl +++ b/templates/org/settings/actions_general.tmpl @@ -1,4 +1,4 @@ -{{template "org/settings/layout_head" .}} +{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings actions")}}

{{ctx.Locale.Tr "actions.actions"}} - {{ctx.Locale.Tr "settings.general"}} diff --git a/templates/repo/settings/actions_general.tmpl b/templates/repo/settings/actions_general.tmpl index 75e244bcb2..02a41ad100 100644 --- a/templates/repo/settings/actions_general.tmpl +++ b/templates/repo/settings/actions_general.tmpl @@ -1,5 +1,31 @@
+ +

+ {{ctx.Locale.Tr "actions.general.enable_actions"}} +

+
+
+ {{.CsrfTokenHtml}} + {{$isActionsEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeActions}} + {{$isActionsGlobalDisabled := ctx.Consts.RepoUnitTypeActions.UnitGlobalDisabled}} +
+ +
+ + +
+
+ {{if not $isActionsGlobalDisabled}} +
+
+ +
+ {{end}} +
+
+ +

{{ctx.Locale.Tr "actions.actions"}} - {{ctx.Locale.Tr "settings.general"}}

@@ -210,31 +236,6 @@
- -

- {{ctx.Locale.Tr "actions.general.enable_actions"}} -

-
-
- {{.CsrfTokenHtml}} - {{$isActionsEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeActions}} - {{$isActionsGlobalDisabled := ctx.Consts.RepoUnitTypeActions.UnitGlobalDisabled}} -
- -
- - -
-
- {{if not $isActionsGlobalDisabled}} -
-
- -
- {{end}} -
-
- {{if and .EnableActions (.Permission.CanRead ctx.Consts.RepoUnitTypeActions)}} {{if .Repository.IsPrivate}} @@ -280,4 +281,3 @@ {{end}} {{end}}
-