@@ -24,19 +24,19 module GanttHelper | |||||
24 | when :in |
|
24 | when :in | |
25 | if gantt.zoom < 4 |
|
25 | if gantt.zoom < 4 | |
26 | link_to_content_update l(:text_zoom_in), |
|
26 | link_to_content_update l(:text_zoom_in), | |
27 | params.merge(gantt.params.merge(:zoom => (gantt.zoom+1))), |
|
27 | params.merge(gantt.params.merge(:zoom => (gantt.zoom + 1))), | |
28 | :class => 'icon icon-zoom-in' |
|
28 | :class => 'icon icon-zoom-in' | |
29 | else |
|
29 | else | |
30 |
content_tag( |
|
30 | content_tag(:span, l(:text_zoom_in), :class => 'icon icon-zoom-in').html_safe | |
31 | end |
|
31 | end | |
32 |
|
32 | |||
33 | when :out |
|
33 | when :out | |
34 | if gantt.zoom > 1 |
|
34 | if gantt.zoom > 1 | |
35 | link_to_content_update l(:text_zoom_out), |
|
35 | link_to_content_update l(:text_zoom_out), | |
36 | params.merge(gantt.params.merge(:zoom => (gantt.zoom-1))), |
|
36 | params.merge(gantt.params.merge(:zoom => (gantt.zoom - 1))), | |
37 | :class => 'icon icon-zoom-out' |
|
37 | :class => 'icon icon-zoom-out' | |
38 | else |
|
38 | else | |
39 |
content_tag( |
|
39 | content_tag(:span, l(:text_zoom_out), :class => 'icon icon-zoom-out').html_safe | |
40 | end |
|
40 | end | |
41 | end |
|
41 | end | |
42 | end |
|
42 | end |
General Comments 0
You need to be logged in to leave comments.
Login now