Mercurial > hg > soundsoftware-site
comparison app/helpers/gantt_helper.rb @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | cbce1fd3b1b7 |
children | 433d4f72a19b |
comparison
equal
deleted
inserted
replaced
908:c6c2cbd0afee | 909:cbb26bc654de |
---|---|
1 # encoding: utf-8 | |
2 # | |
1 # Redmine - project management software | 3 # Redmine - project management software |
2 # Copyright (C) 2006-2011 Jean-Philippe Lang | 4 # Copyright (C) 2006-2011 Jean-Philippe Lang |
3 # | 5 # |
4 # This program is free software; you can redistribute it and/or | 6 # This program is free software; you can redistribute it and/or |
5 # modify it under the terms of the GNU General Public License | 7 # modify it under the terms of the GNU General Public License |
6 # as published by the Free Software Foundation; either version 2 | 8 # as published by the Free Software Foundation; either version 2 |
7 # of the License, or (at your option) any later version. | 9 # of the License, or (at your option) any later version. |
8 # | 10 # |
9 # This program is distributed in the hope that it will be useful, | 11 # This program is distributed in the hope that it will be useful, |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 # GNU General Public License for more details. | 14 # GNU General Public License for more details. |
13 # | 15 # |
14 # You should have received a copy of the GNU General Public License | 16 # You should have received a copy of the GNU General Public License |
15 # along with this program; if not, write to the Free Software | 17 # along with this program; if not, write to the Free Software |
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 | 19 |
18 module GanttHelper | 20 module GanttHelper |
23 if gantt.zoom < 4 | 25 if gantt.zoom < 4 |
24 link_to_content_update l(:text_zoom_in), | 26 link_to_content_update l(:text_zoom_in), |
25 params.merge(gantt.params.merge(:zoom => (gantt.zoom+1))), | 27 params.merge(gantt.params.merge(:zoom => (gantt.zoom+1))), |
26 :class => 'icon icon-zoom-in' | 28 :class => 'icon icon-zoom-in' |
27 else | 29 else |
28 content_tag('span', l(:text_zoom_in), :class => 'icon icon-zoom-in') | 30 content_tag('span', l(:text_zoom_in), :class => 'icon icon-zoom-in').html_safe |
29 end | 31 end |
30 | 32 |
31 when :out | 33 when :out |
32 if gantt.zoom > 1 | 34 if gantt.zoom > 1 |
33 link_to_content_update l(:text_zoom_out), | 35 link_to_content_update l(:text_zoom_out), |
34 params.merge(gantt.params.merge(:zoom => (gantt.zoom-1))), | 36 params.merge(gantt.params.merge(:zoom => (gantt.zoom-1))), |
35 :class => 'icon icon-zoom-out' | 37 :class => 'icon icon-zoom-out' |
36 else | 38 else |
37 content_tag('span', l(:text_zoom_out), :class => 'icon icon-zoom-out') | 39 content_tag('span', l(:text_zoom_out), :class => 'icon icon-zoom-out').html_safe |
38 end | 40 end |
39 end | 41 end |
40 end | 42 end |
41 end | 43 end |