]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up app/helpers/issues_helper.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 14:09:50 +0000 (14:09 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 14:09:50 +0000 (14:09 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19011 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/issues_helper.rb

index 30d17fda915dd0423b972b37f2b34f48dff9c53b..1eca83789e6890f68d381f0662e358a21595019d 100644 (file)
@@ -94,7 +94,10 @@ module IssuesHelper
   def render_descendants_tree(issue)
     manage_relations = User.current.allowed_to?(:manage_subtasks, issue.project)
     s = +'<table class="list issues odd-even">'
-    issue_list(issue.descendants.visible.preload(:status, :priority, :tracker, :assigned_to).sort_by(&:lft)) do |child, level|
+    issue_list(
+      issue.descendants.visible.
+        preload(:status, :priority, :tracker,
+                :assigned_to).sort_by(&:lft)) do |child, level|
       css = +"issue issue-#{child.id} hascontextmenu #{child.css_classes}"
       css << " idnt idnt-#{level}" if level > 0
       buttons =