|
|
@ -73,17 +73,17 @@ module ApplicationHelper |
|
|
|
def link_to_issue(issue, options={}) |
|
|
|
def link_to_issue(issue, options={}) |
|
|
|
title = nil |
|
|
|
title = nil |
|
|
|
subject = nil |
|
|
|
subject = nil |
|
|
|
if options[:subject] == false |
|
|
|
title = "#{h(issue.tracker)} #{issue.id}: #{(truncate(issue.subject, :length => 60))}" |
|
|
|
title = truncate(issue.subject, :length => 60) |
|
|
|
unless options[:subject] == false |
|
|
|
else |
|
|
|
|
|
|
|
subject = issue.subject |
|
|
|
subject = issue.subject |
|
|
|
if options[:truncate] |
|
|
|
if options[:truncate] |
|
|
|
subject = truncate(subject, :length => options[:truncate]) |
|
|
|
subject = truncate(subject, :length => options[:truncate]) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
s = link_to "#{h(issue.tracker)} ##{issue.id}", {:controller => "issues", :action => "show", :id => issue}, |
|
|
|
s = image_tag "bullet_go.png", :alt => l(:label_issue), :title => l(:label_issue) |
|
|
|
|
|
|
|
s << link_to("#{h(issue.tracker)} ##{issue.id}", {:controller => "issues", :action => "show", :id => issue}, |
|
|
|
:class => issue.css_classes, |
|
|
|
:class => issue.css_classes, |
|
|
|
:title => title |
|
|
|
:title => title) |
|
|
|
s << ": #{h subject}" if subject |
|
|
|
s << ": #{h subject}" if subject |
|
|
|
s = "#{h issue.project} - " + s if options[:project] |
|
|
|
s = "#{h issue.project} - " + s if options[:project] |
|
|
|
s |
|
|
|
s |
|
|
|