mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-19 18:12:01 +00:00
cleanup: rubocop: fix Layout/AlignArguments in app/helpers/gantt_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18933 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2d7e8b6a70
commit
f7a6cf8d1b
@ -23,18 +23,20 @@ module GanttHelper
|
||||
case in_or_out
|
||||
when :in
|
||||
if gantt.zoom < 4
|
||||
link_to l(:text_zoom_in),
|
||||
link_to(
|
||||
l(:text_zoom_in),
|
||||
{:params => request.query_parameters.merge(gantt.params.merge(:zoom => (gantt.zoom + 1)))},
|
||||
:class => 'icon icon-zoom-in'
|
||||
:class => 'icon icon-zoom-in')
|
||||
else
|
||||
content_tag(:span, l(:text_zoom_in), :class => 'icon icon-zoom-in').html_safe
|
||||
end
|
||||
|
||||
when :out
|
||||
if gantt.zoom > 1
|
||||
link_to l(:text_zoom_out),
|
||||
link_to(
|
||||
l(:text_zoom_out),
|
||||
{:params => request.query_parameters.merge(gantt.params.merge(:zoom => (gantt.zoom - 1)))},
|
||||
:class => 'icon icon-zoom-out'
|
||||
:class => 'icon icon-zoom-out')
|
||||
else
|
||||
content_tag(:span, l(:text_zoom_out), :class => 'icon icon-zoom-out').html_safe
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user