aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/settings
diff options
context:
space:
mode:
authorDownload-Fritz <download-fritz@outlook.com>2016-02-19 20:33:06 +0100
committerDownload-Fritz <download-fritz@outlook.com>2016-02-19 20:33:06 +0100
commita467184e13e4e3867031c191263dc0adaec2673c (patch)
treee01e62d7085e72e4a8f02142c1a5fe3571e56c4d /templates/repo/settings
parent2fdf8fc938295b95cbe6efb7cddb1b87c2fb81ee (diff)
downloadgitea-a467184e13e4e3867031c191263dc0adaec2673c.tar.gz
gitea-a467184e13e4e3867031c191263dc0adaec2673c.zip
#2505 Allow to fork and disallow to create PRs for mirrors.
Diffstat (limited to 'templates/repo/settings')
-rw-r--r--templates/repo/settings/options.tmpl16
1 files changed, 9 insertions, 7 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index 985779fae3..977d841cf5 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -117,15 +117,17 @@
<p class="help">{{.i18n.Tr "repo.settings.tracker_url_format_desc" | Str2html}}</p>
</div>
- <div class="ui divider"></div>
+ {{if .Repository.CanEnablePulls}}
+ <div class="ui divider"></div>
- <div class="inline field">
- <label>{{.i18n.Tr "repo.pulls"}}</label>
- <div class="ui checkbox">
- <input name="enable_pulls" type="checkbox" {{if .Repository.EnablePulls}}checked{{end}}>
- <label>{{.i18n.Tr "repo.settings.pulls_desc"}}</label>
+ <div class="inline field">
+ <label>{{.i18n.Tr "repo.pulls"}}</label>
+ <div class="ui checkbox">
+ <input name="enable_pulls" type="checkbox" {{if .Repository.EnablePulls}}checked{{end}}>
+ <label>{{.i18n.Tr "repo.settings.pulls_desc"}}</label>
+ </div>
</div>
- </div>
+ {{end}}
<div class="ui divider"></div>
<div class="field">