Issue tracker field added to projects

This commit is contained in:
Andrew8xx8 2013-01-23 18:13:28 +04:00
parent 8f621c9e06
commit e6d2e56961
9 changed files with 69 additions and 315 deletions

View file

@ -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