From b03af9efb275f935bb265c7f031225caaafefaff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim-Nicas=20Oelschl=C3=A4ger?=
<72873130+zokkis@users.noreply.github.com>
Date: Sun, 11 Feb 2024 15:10:04 +0100
Subject: [PATCH] Show more settings for empty repositories (#29130)
Shows more settings for empty repositories (Fixes #29060)
(cherry picked from commit 28db539d9c0fa0b7c9411724d8b4bf6f371651a0)
---
templates/repo/settings/navbar.tmpl | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/templates/repo/settings/navbar.tmpl b/templates/repo/settings/navbar.tmpl
index 62f81a901e..df5ba3aba6 100644
--- a/templates/repo/settings/navbar.tmpl
+++ b/templates/repo/settings/navbar.tmpl
@@ -29,10 +29,12 @@
{{ctx.Locale.Tr "repo.settings.hooks"}}
{{end}}
- {{if and (.Repository.UnitEnabled $.Context $.UnitTypeCode) (not .Repository.IsEmpty)}}
-
- {{ctx.Locale.Tr "repo.settings.branches"}}
-
+ {{if .Repository.UnitEnabled $.Context $.UnitTypeCode}}
+ {{if not .Repository.IsEmpty}}
+
+ {{ctx.Locale.Tr "repo.settings.branches"}}
+
+ {{end}}
{{ctx.Locale.Tr "repo.settings.tags"}}