@@ -235,23 +235,27 module IssuesHelper | |||||
235 | end |
|
235 | end | |
236 |
|
236 | |||
237 | def gantt_zoom_link(gantt, in_or_out) |
|
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 | case in_or_out |
|
240 | case in_or_out | |
239 | when :in |
|
241 | when :in | |
240 | if gantt.zoom < 4 |
|
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 | {:url => gantt.params.merge(:zoom => (gantt.zoom+1)), :update => 'content'}, |
|
244 | {:url => gantt.params.merge(:zoom => (gantt.zoom+1)), :update => 'content'}, | |
243 | {:href => url_for(gantt.params.merge(:zoom => (gantt.zoom+1)))}) |
|
245 | {:href => url_for(gantt.params.merge(:zoom => (gantt.zoom+1)))}) | |
244 | else |
|
246 | else | |
245 |
|
|
247 | l(:text_zoom_in) + | |
|
248 | image_tag('zoom_in_g.png', img_attributes.merge(:alt => l(:text_zoom_in))) | |||
246 | end |
|
249 | end | |
247 |
|
250 | |||
248 | when :out |
|
251 | when :out | |
249 | if gantt.zoom > 1 |
|
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 | {:url => gantt.params.merge(:zoom => (gantt.zoom-1)), :update => 'content'}, |
|
254 | {:url => gantt.params.merge(:zoom => (gantt.zoom-1)), :update => 'content'}, | |
252 | {:href => url_for(gantt.params.merge(:zoom => (gantt.zoom-1)))}) |
|
255 | {:href => url_for(gantt.params.merge(:zoom => (gantt.zoom-1)))}) | |
253 | else |
|
256 | else | |
254 |
|
|
257 | l(:text_zoom_out) + | |
|
258 | image_tag('zoom_out_g.png', img_attributes.merge(:alt => l(:text_zoom_out))) | |||
255 | end |
|
259 | end | |
256 | end |
|
260 | end | |
257 | end |
|
261 | end |
@@ -871,6 +871,8 en: | |||||
871 | text_wiki_page_destroy_children: "Delete child pages and all their descendants" |
|
871 | text_wiki_page_destroy_children: "Delete child pages and all their descendants" | |
872 | text_wiki_page_reassign_children: "Reassign child pages to this parent page" |
|
872 | text_wiki_page_reassign_children: "Reassign child pages to this parent page" | |
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?" |
|
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 | default_role_manager: Manager |
|
877 | default_role_manager: Manager | |
876 | default_role_developper: Developer |
|
878 | default_role_developper: Developer |
General Comments 0
You need to be logged in to leave comments.
Login now