From d4834071da9ce010fd4677ef339c598dd23dc130 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 8 May 2022 23:51:50 +0800 Subject: Repository level enable package or disable (#19323) --- templates/repo/settings/options.tmpl | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'templates/repo/settings') diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 7695345010..77897f25cf 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -390,6 +390,19 @@ + {{$isPackagesEnabled := .Repository.UnitEnabled $.UnitTypePackages}} +
+ + {{if .UnitTypePackages.UnitGlobalDisabled}} +
+ {{else}} +
+ {{end}} + + +
+
+ {{if not .IsMirror}}
{{$pullRequestEnabled := .Repository.UnitEnabled $.UnitTypePullRequests}} -- cgit v1.2.3