Mercurial > hg > soundsoftware-site
comparison app/helpers/.svn/text-base/issues_helper.rb.svn-base @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | 40f7cfd4df19 |
children | af80e5618e9b |
comparison
equal
deleted
inserted
replaced
22:40f7cfd4df19 | 37:94944d00e43c |
---|---|
244 csv << fields.collect {|c| begin; ic.iconv(c.to_s); rescue; c.to_s; end } | 244 csv << fields.collect {|c| begin; ic.iconv(c.to_s); rescue; c.to_s; end } |
245 end | 245 end |
246 end | 246 end |
247 export | 247 export |
248 end | 248 end |
249 | |
250 def gantt_zoom_link(gantt, in_or_out) | |
251 img_attributes = {:style => 'height:1.4em; width:1.4em; margin-left: 3px;'} # em for accessibility | |
252 | |
253 case in_or_out | |
254 when :in | |
255 if gantt.zoom < 4 | |
256 link_to_remote(l(:text_zoom_in) + image_tag('zoom_in.png', img_attributes.merge(:alt => l(:text_zoom_in))), | |
257 {:url => gantt.params.merge(:zoom => (gantt.zoom+1)), :method => :get, :update => 'content'}, | |
258 {:href => url_for(gantt.params.merge(:zoom => (gantt.zoom+1)))}) | |
259 else | |
260 l(:text_zoom_in) + | |
261 image_tag('zoom_in_g.png', img_attributes.merge(:alt => l(:text_zoom_in))) | |
262 end | |
263 | |
264 when :out | |
265 if gantt.zoom > 1 | |
266 link_to_remote(l(:text_zoom_out) + image_tag('zoom_out.png', img_attributes.merge(:alt => l(:text_zoom_out))), | |
267 {:url => gantt.params.merge(:zoom => (gantt.zoom-1)), :method => :get, :update => 'content'}, | |
268 {:href => url_for(gantt.params.merge(:zoom => (gantt.zoom-1)))}) | |
269 else | |
270 l(:text_zoom_out) + | |
271 image_tag('zoom_out_g.png', img_attributes.merge(:alt => l(:text_zoom_out))) | |
272 end | |
273 end | |
274 end | |
275 end | 249 end |