switches to join concatenation (as it was faster in my test)

pull/26/head
Jens Ulferts 12 years ago
parent 78fefce03b
commit 89db6011e8
  1. 13
      app/helpers/issues_helper.rb

@ -163,28 +163,29 @@ module IssuesHelper
css_classes << "idnt" << "idnt-#{level}" if level > 0
if relation == "root"
issue_text = link_to("#{h(issue.tracker.name)} ##{issue.id}",
issue_text = [link_to("#{h(issue.tracker.name)} ##{issue.id}",
'javascript:void(0)',
:style => "color:inherit; font-weight: bold; text-decoration:none; cursor:default;",
:class => issue.css_classes)
:class => issue.css_classes)]
else
title = ''
title = []
if relation == "parent"
title << content_tag(:span, l(:description_parent_issue), :class => "hidden-for-sighted")
elsif relation == "child"
title << content_tag(:span, l(:description_sub_issue), :class => "hidden-for-sighted")
end
title << " #{h(issue.tracker.name)} ##{issue.id}"
title << h(issue.tracker.name)
title << "##{issue.id}"
issue_text = link_to(title, issue, :class => issue.css_classes)
issue_text = [link_to(title.join(' '), issue_path(issue), :class => issue.css_classes)]
end
issue_text << ": "
issue_text << truncate(issue.subject, :length => 60)
content_tag('tr', [
content_tag('td', check_box_tag("ids[]", issue.id, false, :id => nil), :class => 'checkbox'),
content_tag('td', issue_text, :class => 'subject'),
content_tag('td', issue_text.join(''), :class => 'subject'),
content_tag('td', h(issue.status)),
content_tag('td', link_to_user(issue.assigned_to)),
content_tag('td', link_to_version(issue.fixed_version))

Loading…
Cancel
Save