summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-17 16:54:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-17 16:54:26 +0000
commit0a000921f87c078cb1cf4695fa6a93321eb17b90 (patch)
tree1e0b5cbcf1077f3ef2116a3bbaed6a8810505f77
parentc945fe82b24e45ae2bbca86e4391a49a00b27c57 (diff)
downloadredmine-0a000921f87c078cb1cf4695fa6a93321eb17b90.tar.gz
redmine-0a000921f87c078cb1cf4695fa6a93321eb17b90.zip
Use a local variable.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10660 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/helpers/issues_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index 2cc387ff8..a4213c6be 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -80,13 +80,15 @@ module IssuesHelper
def render_descendants_tree(issue)
s = '<form><table class="list issues">'
issue_list(issue.descendants.visible.sort_by(&:lft)) do |child, level|
+ css = "issue issue-#{child.id} hascontextmenu"
+ css << " idnt idnt-#{level}" if level > 0
s << content_tag('tr',
content_tag('td', check_box_tag("ids[]", child.id, false, :id => nil), :class => 'checkbox') +
content_tag('td', link_to_issue(child, :truncate => 60, :project => (issue.project_id != child.project_id)), :class => 'subject') +
content_tag('td', h(child.status)) +
content_tag('td', link_to_user(child.assigned_to)) +
content_tag('td', progress_bar(child.done_ratio, :width => '80px')),
- :class => "issue issue-#{child.id} hascontextmenu #{level > 0 ? "idnt idnt-#{level}" : nil}")
+ :class => css)
end
s << '</table></form>'
s.html_safe