@@ -53,6 +53,6 module CalendarsHelper | |||||
53 | end |
|
53 | end | |
54 |
|
54 | |||
55 | def link_to_month(link_name, year, month, options={}) |
|
55 | def link_to_month(link_name, year, month, options={}) | |
56 | link_to(link_name, params.merge(:year => year, :month => month), options) |
|
56 | link_to(link_name, {:params => request.query_parameters.merge(:year => year, :month => month)}, options) | |
57 | end |
|
57 | end | |
58 | end |
|
58 | end |
@@ -24,7 +24,7 module GanttHelper | |||||
24 | when :in |
|
24 | when :in | |
25 | if gantt.zoom < 4 |
|
25 | if gantt.zoom < 4 | |
26 | link_to l(:text_zoom_in), |
|
26 | link_to l(:text_zoom_in), | |
27 | params.merge(gantt.params.merge(:zoom => (gantt.zoom + 1))), |
|
27 | {:params => request.query_parameters.merge(gantt.params.merge(:zoom => (gantt.zoom + 1)))}, | |
28 | :class => 'icon icon-zoom-in' |
|
28 | :class => 'icon icon-zoom-in' | |
29 | else |
|
29 | else | |
30 | content_tag(:span, l(:text_zoom_in), :class => 'icon icon-zoom-in').html_safe |
|
30 | content_tag(:span, l(:text_zoom_in), :class => 'icon icon-zoom-in').html_safe | |
@@ -33,7 +33,7 module GanttHelper | |||||
33 | when :out |
|
33 | when :out | |
34 | if gantt.zoom > 1 |
|
34 | if gantt.zoom > 1 | |
35 | link_to l(:text_zoom_out), |
|
35 | link_to l(:text_zoom_out), | |
36 | params.merge(gantt.params.merge(:zoom => (gantt.zoom - 1))), |
|
36 | {:params => request.query_parameters.merge(gantt.params.merge(:zoom => (gantt.zoom - 1)))}, | |
37 | :class => 'icon icon-zoom-out' |
|
37 | :class => 'icon icon-zoom-out' | |
38 | else |
|
38 | else | |
39 | content_tag(:span, l(:text_zoom_out), :class => 'icon icon-zoom-out').html_safe |
|
39 | content_tag(:span, l(:text_zoom_out), :class => 'icon icon-zoom-out').html_safe |
@@ -290,7 +290,7 module IssuesHelper | |||||
290 | def query_links(title, queries) |
|
290 | def query_links(title, queries) | |
291 | return '' if queries.empty? |
|
291 | return '' if queries.empty? | |
292 | # links to #index on issues/show |
|
292 | # links to #index on issues/show | |
293 |
url_params = controller_name == 'issues' ? {:controller => 'issues', :action => 'index', :project_id => @project} : |
|
293 | url_params = controller_name == 'issues' ? {:controller => 'issues', :action => 'index', :project_id => @project} : {} | |
294 |
|
294 | |||
295 | content_tag('h3', title) + "\n" + |
|
295 | content_tag('h3', title) + "\n" + | |
296 | content_tag('ul', |
|
296 | content_tag('ul', |
@@ -25,12 +25,12 | |||||
25 | <ul class="pages"> |
|
25 | <ul class="pages"> | |
26 | <li class="previous page"> |
|
26 | <li class="previous page"> | |
27 | <%= link_to("\xc2\xab " + l(:label_previous), |
|
27 | <%= link_to("\xc2\xab " + l(:label_previous), | |
28 | params.merge(:from => @date_to - @days - 1), |
|
28 | {:params => request.query_parameters.merge(:from => @date_to - @days - 1)}, | |
29 | :title => l(:label_date_from_to, :start => format_date(@date_to - 2*@days), :end => format_date(@date_to - @days - 1)), |
|
29 | :title => l(:label_date_from_to, :start => format_date(@date_to - 2*@days), :end => format_date(@date_to - @days - 1)), | |
30 | :accesskey => accesskey(:previous)) %> |
|
30 | :accesskey => accesskey(:previous)) %> | |
31 | </li><% unless @date_to >= User.current.today %><li class="next page"> |
|
31 | </li><% unless @date_to >= User.current.today %><li class="next page"> | |
32 | <%= link_to(l(:label_next) + " \xc2\xbb", |
|
32 | <%= link_to(l(:label_next) + " \xc2\xbb", | |
33 | params.merge(:from => @date_to + @days - 1), |
|
33 | {:params => request.query_parameters.merge(:from => @date_to + @days - 1)}, | |
34 | :title => l(:label_date_from_to, :start => format_date(@date_to), :end => format_date(@date_to + @days - 1)), |
|
34 | :title => l(:label_date_from_to, :start => format_date(@date_to), :end => format_date(@date_to + @days - 1)), | |
35 | :accesskey => accesskey(:next)) %><% end %> |
|
35 | :accesskey => accesskey(:next)) %><% end %> | |
36 | </li> |
|
36 | </li> |
@@ -333,12 +333,12 | |||||
333 | <tr> |
|
333 | <tr> | |
334 | <td style="text-align:left;"> |
|
334 | <td style="text-align:left;"> | |
335 | <%= link_to("\xc2\xab " + l(:label_previous), |
|
335 | <%= link_to("\xc2\xab " + l(:label_previous), | |
336 | params.merge(@gantt.params_previous), |
|
336 | {:params => request.query_parameters.merge(@gantt.params_previous)}, | |
337 | :accesskey => accesskey(:previous)) %> |
|
337 | :accesskey => accesskey(:previous)) %> | |
338 | </td> |
|
338 | </td> | |
339 | <td style="text-align:right;"> |
|
339 | <td style="text-align:right;"> | |
340 | <%= link_to(l(:label_next) + " \xc2\xbb", |
|
340 | <%= link_to(l(:label_next) + " \xc2\xbb", | |
341 | params.merge(@gantt.params_next), |
|
341 | {:params => request.query_parameters.merge(@gantt.params_next)}, | |
342 | :accesskey => accesskey(:next)) %> |
|
342 | :accesskey => accesskey(:next)) %> | |
343 | </td> |
|
343 | </td> | |
344 | </tr> |
|
344 | </tr> |
General Comments 0
You need to be logged in to leave comments.
Login now