From eca961e677d0e1725ff7a19541e6d04e6cae28f9 Mon Sep 17 00:00:00 2001 From: Excellencedev Date: Sat, 20 Dec 2025 05:15:13 +0100 Subject: [PATCH] Minor fixes --- routers/web/org/setting/actions.go | 2 +- templates/repo/settings/actions_general.tmpl | 75 +++++++++++++++++++- 2 files changed, 73 insertions(+), 4 deletions(-) diff --git a/routers/web/org/setting/actions.go b/routers/web/org/setting/actions.go index e06a06b390..4675df7919 100644 --- a/routers/web/org/setting/actions.go +++ b/routers/web/org/setting/actions.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Gitea Authors. All rights reserved. +// Copyright 2025 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package setting diff --git a/templates/repo/settings/actions_general.tmpl b/templates/repo/settings/actions_general.tmpl index f86aa7c38e..f6a2c0c9c2 100644 --- a/templates/repo/settings/actions_general.tmpl +++ b/templates/repo/settings/actions_general.tmpl @@ -4,7 +4,7 @@ {{ctx.Locale.Tr "actions.actions"}} - {{ctx.Locale.Tr "settings.general"}}
-
+ {{.CsrfTokenHtml}} @@ -199,7 +199,7 @@
- +
@@ -209,6 +209,75 @@ + + +

+ {{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}} + +

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

+ {{if len .CollaborativeOwners}} +
+
+ {{range .CollaborativeOwners}} +
+ +
+
+ {{template "shared/user/name" .}} +
+
+
+ +
+
+ {{end}} +
+
+ {{end}} +
+
+ {{.CsrfTokenHtml}} + + +
+
+ {{ctx.Locale.Tr "actions.general.collaborative_owners_management_help"}} +
+ {{end}} +{{end}} {{template "repo/settings/layout_footer" .}} -