summaryrefslogtreecommitdiffstats
path: root/app/views/gantts
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-05-26 22:48:17 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-05-26 22:48:17 +0000
commitab4bdc379e3851cc6c68dc151de60ae0df682ebf (patch)
tree304059d0115ab453080a64d6112e1a55569526c6 /app/views/gantts
parentc3c3460e0dead03b17a27fea7bd49ddb3c3fac53 (diff)
downloadredmine-ab4bdc379e3851cc6c68dc151de60ae0df682ebf.tar.gz
redmine-ab4bdc379e3851cc6c68dc151de60ae0df682ebf.zip
Refactor: extract gantt zoom links to a helper.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3756 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/gantts')
-rw-r--r--app/views/gantts/show.html.erb12
1 files changed, 2 insertions, 10 deletions
diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb
index f0c6f4622..653a41d41 100644
--- a/app/views/gantts/show.html.erb
+++ b/app/views/gantts/show.html.erb
@@ -9,16 +9,8 @@
</fieldset>
<p style="float:right;">
-<%= if @gantt.zoom < 4
- link_to_remote image_tag('zoom_in.png'), {:url => @gantt.params.merge(:zoom => (@gantt.zoom+1)), :update => 'content'}, {:href => url_for(@gantt.params.merge(:zoom => (@gantt.zoom+1)))}
- else
- image_tag 'zoom_in_g.png'
- end %>
-<%= if @gantt.zoom > 1
- link_to_remote image_tag('zoom_out.png'), {:url => @gantt.params.merge(:zoom => (@gantt.zoom-1)), :update => 'content'}, {:href => url_for(@gantt.params.merge(:zoom => (@gantt.zoom-1)))}
- else
- image_tag 'zoom_out_g.png'
- end %>
+ <%= gantt_zoom_link(@gantt, :in) %>
+ <%= gantt_zoom_link(@gantt, :out) %>
</p>
<p class="buttons">