diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-10-23 09:08:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-10-23 09:08:55 +0000 |
commit | a29c35e08f2322d7ed0dc362419009a06b74329c (patch) | |
tree | febffeb81d93c2cfdb58ffa48a87f6f0f336597f /app/helpers | |
parent | 0ca74df6040371e448bcb3c718b84cdb635f07ee (diff) | |
download | redmine-a29c35e08f2322d7ed0dc362419009a06b74329c.tar.gz redmine-a29c35e08f2322d7ed0dc362419009a06b74329c.zip |
Makes zoom buttons on gantt looks like the others.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4283 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/gantt_helper.rb | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/app/helpers/gantt_helper.rb b/app/helpers/gantt_helper.rb index 97f7646f9..b0d9f5519 100644 --- a/app/helpers/gantt_helper.rb +++ b/app/helpers/gantt_helper.rb @@ -18,27 +18,25 @@ module GanttHelper def gantt_zoom_link(gantt, in_or_out) - img_attributes = {:style => 'height:1.4em; width:1.4em; margin-left: 3px;'} # em for accessibility - case in_or_out when :in if gantt.zoom < 4 - link_to_remote(l(:text_zoom_in) + image_tag('zoom_in.png', img_attributes.merge(:alt => l(:text_zoom_in))), + link_to_remote(l(:text_zoom_in), {:url => gantt.params.merge(:zoom => (gantt.zoom+1)), :method => :get, :update => 'content'}, - {:href => url_for(gantt.params.merge(:zoom => (gantt.zoom+1)))}) + {:href => url_for(gantt.params.merge(:zoom => (gantt.zoom+1))), + :class => 'icon icon-zoom-in'}) else - l(:text_zoom_in) + - image_tag('zoom_in_g.png', img_attributes.merge(:alt => l(:text_zoom_in))) + content_tag('span', l(:text_zoom_in), :class => 'icon icon-zoom-in') end when :out if gantt.zoom > 1 - link_to_remote(l(:text_zoom_out) + image_tag('zoom_out.png', img_attributes.merge(:alt => l(:text_zoom_out))), + link_to_remote(l(:text_zoom_out), {:url => gantt.params.merge(:zoom => (gantt.zoom-1)), :method => :get, :update => 'content'}, - {:href => url_for(gantt.params.merge(:zoom => (gantt.zoom-1)))}) + {:href => url_for(gantt.params.merge(:zoom => (gantt.zoom-1))), + :class => 'icon icon-zoom-out'}) else - l(:text_zoom_out) + - image_tag('zoom_out_g.png', img_attributes.merge(:alt => l(:text_zoom_out))) + content_tag('span', l(:text_zoom_out), :class => 'icon icon-zoom-out') end end end |