From 21fd3da6f5c2787d3df7670fd7d571cf36039ff9 Mon Sep 17 00:00:00 2001 From: Morlinest Date: Mon, 3 Apr 2017 04:19:51 +0200 Subject: [PATCH] Fix disabled fields in repo settings UI (#1431) --- templates/repo/settings/options.tmpl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index cd7d2c304b..dbe7d81f84 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -93,14 +93,15 @@ {{.CsrfTokenHtml}} + {{$isWikiEnabled := or (.Repository.EnableUnit $.UnitTypeWiki) (.Repository.EnableUnit $.UnitTypeExternalWiki)}}
- +
-
+
@@ -122,14 +123,15 @@
+ {{$isIssuesEnabled := or (.Repository.EnableUnit $.UnitTypeIssues) (.Repository.EnableUnit $.UnitTypeExternalTracker)}}
- +
-
+