From 8a421b1fd702d99e8438f6ef6f4ee339f1eaa130 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 4 Feb 2017 23:53:46 +0800 Subject: Add units concept for modulable functions of a repository (#742) * Add units concept for modulable functions of a repository * remove unused comment codes & fix lints and tests * remove unused comment codes * use struct config instead of map * fix lint * rm wrong files * fix tests --- templates/repo/settings/options.tmpl | 38 +++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 18 deletions(-) (limited to 'templates/repo/settings/options.tmpl') diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 2588966c9d..911d3693ce 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -114,26 +114,26 @@
- +
-
+
- +
- +
-
+
- +

{{.i18n.Tr "repo.settings.external_wiki_url_desc"}}

@@ -143,45 +143,47 @@
- +
-
+
- +
- +
-
+
- +

{{.i18n.Tr "repo.settings.external_tracker_url_desc"}}

- +

{{.i18n.Tr "repo.settings.tracker_url_format_desc" | Str2html}}

- + {{$externalTracker := (.Repository.MustGetUnit $.UnitTypeExternalTracker)}} + {{$externalTrackerStyle := $externalTracker.ExternalTrackerConfig.ExternalTrackerStyle}} +
- +
@@ -195,7 +197,7 @@
- +
@@ -236,7 +238,7 @@
- {{if .Repository.EnableWiki}} + {{if .Repository.EnableUnit $.UnitTypeWiki}}
@@ -370,7 +372,7 @@
- {{if .Repository.EnableWiki}} + {{if .Repository.EnableUnit $.UnitTypeWiki}}