@@ -235,23 +235,27 module IssuesHelper | |||
|
235 | 235 | end |
|
236 | 236 | |
|
237 | 237 | def gantt_zoom_link(gantt, in_or_out) |
|
238 | img_attributes = {:style => 'height:1.4em; width:1.4em; margin-left: 3px;'} # em for accessibility | |
|
239 | ||
|
238 | 240 | case in_or_out |
|
239 | 241 | when :in |
|
240 | 242 | if gantt.zoom < 4 |
|
241 | link_to_remote(image_tag('zoom_in.png'), | |
|
243 | link_to_remote(l(:text_zoom_in) + image_tag('zoom_in.png', img_attributes.merge(:alt => l(:text_zoom_in))), | |
|
242 | 244 | {:url => gantt.params.merge(:zoom => (gantt.zoom+1)), :update => 'content'}, |
|
243 | 245 | {:href => url_for(gantt.params.merge(:zoom => (gantt.zoom+1)))}) |
|
244 | 246 | else |
|
245 |
|
|
|
247 | l(:text_zoom_in) + | |
|
248 | image_tag('zoom_in_g.png', img_attributes.merge(:alt => l(:text_zoom_in))) | |
|
246 | 249 | end |
|
247 | 250 | |
|
248 | 251 | when :out |
|
249 | 252 | if gantt.zoom > 1 |
|
250 | link_to_remote(image_tag('zoom_out.png'), | |
|
253 | link_to_remote(l(:text_zoom_out) + image_tag('zoom_out.png', img_attributes.merge(:alt => l(:text_zoom_out))), | |
|
251 | 254 | {:url => gantt.params.merge(:zoom => (gantt.zoom-1)), :update => 'content'}, |
|
252 | 255 | {:href => url_for(gantt.params.merge(:zoom => (gantt.zoom-1)))}) |
|
253 | 256 | else |
|
254 |
|
|
|
257 | l(:text_zoom_out) + | |
|
258 | image_tag('zoom_out_g.png', img_attributes.merge(:alt => l(:text_zoom_out))) | |
|
255 | 259 | end |
|
256 | 260 | end |
|
257 | 261 | end |
@@ -871,6 +871,8 en: | |||
|
871 | 871 | text_wiki_page_destroy_children: "Delete child pages and all their descendants" |
|
872 | 872 | text_wiki_page_reassign_children: "Reassign child pages to this parent page" |
|
873 | 873 | text_own_membership_delete_confirmation: "You are about to remove some or all of your permissions and may no longer be able to edit this project after that.\nAre you sure you want to continue?" |
|
874 | text_zoom_in: Zoom in | |
|
875 | text_zoom_out: Zoom out | |
|
874 | 876 | |
|
875 | 877 | default_role_manager: Manager |
|
876 | 878 | default_role_developper: Developer |
General Comments 0
You need to be logged in to leave comments.
Login now