diff options
author | Rémy Boulanouar <rboulanouar@gmail.com> | 2016-11-04 09:06:54 +0100 |
---|---|---|
committer | Rémy Boulanouar <rboulanouar@gmail.com> | 2016-11-04 09:06:54 +0100 |
commit | 8dc49dc1149fccda2b4da63fa63d23f2b6260466 (patch) | |
tree | 826472b0f25062dd952359e395e48c960ccdf2df /templates/repo | |
parent | 4a5faecd8f90b4849ab671051e832b3872818b0a (diff) | |
download | gitea-8dc49dc1149fccda2b4da63fa63d23f2b6260466.tar.gz gitea-8dc49dc1149fccda2b4da63fa63d23f2b6260466.zip |
Implementation of the feature to redirect to an external issue tracker
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/header.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/settings/options.tmpl | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 10bfb80e11..a0e7bd1542 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -52,9 +52,9 @@ <a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}"> <i class="octicon octicon-code"></i> {{.i18n.Tr "repo.code"}} </a> - {{if and .Repository.EnableIssues (not .Repository.EnableExternalTracker)}} + {{if .Repository.EnableIssues}} <a class="{{if .PageIsIssueList}}active{{end}} item" href="{{.RepoLink}}/issues"> - <i class="octicon octicon-issue-opened"></i> {{.i18n.Tr "repo.issues"}} <span class="ui {{if not .Repository.NumOpenIssues}}gray{{else}}blue{{end}} small label">{{.Repository.NumOpenIssues}}</span> + <i class="octicon octicon-issue-opened"></i> {{.i18n.Tr "repo.issues"}} {{if not .Repository.EnableExternalTracker}}<span class="ui {{if not .Repository.NumOpenIssues}}gray{{else}}blue{{end}} small label">{{.Repository.NumOpenIssues}}{{end}}</span> </a> {{end}} {{if .Repository.AllowsPulls}} diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 6b61cb7f8e..2588966c9d 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -162,6 +162,11 @@ </div> <div class="field {{if not .Repository.EnableExternalTracker}}disabled{{end}}" id="external_issue_box"> <div class="field"> + <label for="external_tracker_url">{{.i18n.Tr "repo.settings.external_tracker_url"}}</label> + <input id="external_tracker_url" name="external_tracker_url" type="url" value="{{.Repository.ExternalTrackerURL}}"> + <p class="help">{{.i18n.Tr "repo.settings.external_tracker_url_desc"}}</p> + </div> + <div class="field"> <label for="tracker_url_format">{{.i18n.Tr "repo.settings.tracker_url_format"}}</label> <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> |