Issue tracker field added to projects
This commit is contained in:
parent
8f621c9e06
commit
e6d2e56961
9 changed files with 69 additions and 315 deletions
|
@ -163,8 +163,11 @@ module Gitlab
|
|||
end
|
||||
|
||||
def reference_issue(identifier)
|
||||
if issue = @project.issues.where(id: identifier).first
|
||||
link_to("##{identifier}", project_issue_url(@project, issue), html_options.merge(title: "Issue: #{issue.title}", class: "gfm gfm-issue #{html_options[:class]}"))
|
||||
if issue_exists? identifier
|
||||
url = url_for_issue(identifier)
|
||||
title = title_for_issue(identifier)
|
||||
|
||||
link_to("##{identifier}", url, html_options.merge(title: "Issue: #{title}", class: "gfm gfm-issue #{html_options[:class]}"))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue