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