summaryrefslogtreecommitdiffstats
path: root/templates/repo/settings
diff options
context:
space:
mode:
authorCosmin Stroe <cstroe@users.sf.net>2016-04-22 17:28:08 -0500
committerUnknwon <u@gogs.io>2016-04-22 18:28:08 -0400
commitba314a7a36eafc6412544515ebcde58479400e41 (patch)
tree0bbc22db898a9b5e17074ac583ffabf1cdf6d091 /templates/repo/settings
parent39356f423843bcd747bb21526d09bfe6114dde58 (diff)
downloadgitea-ba314a7a36eafc6412544515ebcde58479400e41.tar.gz
gitea-ba314a7a36eafc6412544515ebcde58479400e41.zip
Support alphanumeric issue style (ABC-1234) for external issue tracker (#2992)
Diffstat (limited to 'templates/repo/settings')
-rw-r--r--templates/repo/settings/options.tmpl15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index 75cfd34adf..182ef7dfa2 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -116,6 +116,21 @@
<input id="tracker_url_format" name="tracker_url_format" type="url" value="{{.Repository.ExternalTrackerFormat}}" placeholder="e.g. https://github.com/{user}/{repo}/issues/{index}">
<p class="help">{{.i18n.Tr "repo.settings.tracker_url_format_desc" | Str2html}}</p>
</div>
+ <div class="inline fields">
+ <label for="issue_style">{{.i18n.Tr "repo.settings.tracker_issue_style"}}</label>
+ <div class="field">
+ <div class="ui radio checkbox">
+ <input class="hidden" tabindex="0" name="tracker_issue_style" type="radio" value="numeric" {{if eq .Repository.ExternalTrackerStyle "numeric"}}checked=""{{end}}/>
+ <label>{{.i18n.Tr "repo.settings.tracker_issue_style.numeric" | Safe}}</label>
+ </div>
+ </div>
+ <div class="field">
+ <div class="ui radio checkbox">
+ <input class="hidden" tabindex="0" name="tracker_issue_style" type="radio" value="alphanumeric" {{if eq .Repository.ExternalTrackerStyle "alphanumeric"}}checked=""{{end}}/>
+ <label>{{.i18n.Tr "repo.settings.tracker_issue_style.alphanumeric" | Safe}}</label>
+ </div>
+ </div>
+ </div>
{{if .Repository.CanEnablePulls}}
<div class="ui divider"></div>