]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/AlignArguments in IssuesHelper#render_descendants_tree
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 14:10:51 +0000 (14:10 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 14:10:51 +0000 (14:10 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19019 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/issues_helper.rb

index 1eca83789e6890f68d381f0662e358a21595019d..39fafce34a71e759d6beb0bfa80c83fa28e8b3e7 100644 (file)
@@ -103,28 +103,41 @@ module IssuesHelper
       buttons =
         if manage_relations
           link_to(l(:label_delete_link_to_subtask),
-                  issue_path({:id => child.id, :issue => {:parent_issue_id => ''},
-                              :back_url => issue_path(issue.id), :no_flash => '1'}),
-                                  :method => :put,
-                                  :data => {:confirm => l(:text_are_you_sure)},
-                                  :title => l(:label_delete_link_to_subtask),
-                                  :class => 'icon-only icon-link-break'
-                                  )
+                  issue_path(
+                    {:id => child.id, :issue => {:parent_issue_id => ''},
+                     :back_url => issue_path(issue.id), :no_flash => '1'}),
+                  :method => :put,
+                  :data => {:confirm => l(:text_are_you_sure)},
+                  :title => l(:label_delete_link_to_subtask),
+                  :class => 'icon-only icon-link-break'
+                  )
         else
           "".html_safe
         end
       buttons << link_to_context_menu
-
-      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, :project => (issue.project_id != child.project_id)), :class => 'subject', :style => 'width: 50%') +
+      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,
+                           :project => (issue.project_id != child.project_id)),
+                         :class => 'subject', :style => 'width: 50%') +
              content_tag('td', h(child.status), :class => 'status') +
              content_tag('td', format_date(child.start_date), :class => 'start_date') +
              content_tag('td', format_date(child.due_date), :class => 'due_date') +
              content_tag('td', link_to_user(child.assigned_to), :class => 'assigned_to') +
-             content_tag('td', child.disabled_core_fields.include?('done_ratio') ? '' : progress_bar(child.done_ratio), :class=> 'done_ratio') +
+             content_tag('td',
+                         (if child.disabled_core_fields.include?('done_ratio')
+                            ''
+                          else
+                             progress_bar(child.done_ratio)
+                          end),
+                         :class=> 'done_ratio') +
              content_tag('td', buttons, :class => 'buttons'),
-             :class => css)
+          :class => css)
     end
     s << '</table>'
     s.html_safe