diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-25 10:03:55 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-27 10:39:05 +0100 |
commit | e08d947e77fa79b723bb1a32794f99d3c39ee463 (patch) | |
tree | d2ae3829f2ba93fa2e9bc998dbd457ba70e8e86a /app/models/project_services/issue_tracker_service.rb | |
parent | c5de2ce742f7f2a472eadcd9a2e0d93992930180 (diff) | |
download | gitlab-ce-e08d947e77fa79b723bb1a32794f99d3c39ee463.tar.gz |
Use relative URL for Markdown references, except in mails.email-full-url
Diffstat (limited to 'app/models/project_services/issue_tracker_service.rb')
-rw-r--r-- | app/models/project_services/issue_tracker_service.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/models/project_services/issue_tracker_service.rb b/app/models/project_services/issue_tracker_service.rb index 8e90c44d103..c8ab9d63b74 100644 --- a/app/models/project_services/issue_tracker_service.rb +++ b/app/models/project_services/issue_tracker_service.rb @@ -34,6 +34,18 @@ class IssueTrackerService < Service self.issues_url.gsub(':id', iid.to_s) end + def project_path + project_url + end + + def new_issue_path + new_issue_url + end + + def issue_path(iid) + issue_url(iid) + end + def fields [ { type: 'text', name: 'description', placeholder: description }, |