##// END OF EJS Templates
Removed #link_to_content_update....
Jean-Philippe Lang -
r15216:c84f7243f52d
parent child
Show More
@@ -1365,8 +1365,4 module ApplicationHelper
1365 extend helper
1365 extend helper
1366 return self
1366 return self
1367 end
1367 end
1368
1369 def link_to_content_update(text, url_params = {}, html_options = {})
1370 link_to(text, url_params, html_options)
1371 end
1372 end
1368 end
@@ -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_content_update(h(link_name), params.merge(:year => year, :month => month), options)
56 link_to(link_name, params.merge(:year => year, :month => month), options)
57 end
57 end
58 end
58 end
@@ -23,7 +23,7 module GanttHelper
23 case in_or_out
23 case in_or_out
24 when :in
24 when :in
25 if gantt.zoom < 4
25 if gantt.zoom < 4
26 link_to_content_update l(:text_zoom_in),
26 link_to l(:text_zoom_in),
27 params.merge(gantt.params.merge(:zoom => (gantt.zoom + 1))),
27 params.merge(gantt.params.merge(:zoom => (gantt.zoom + 1))),
28 :class => 'icon icon-zoom-in'
28 :class => 'icon icon-zoom-in'
29 else
29 else
@@ -32,7 +32,7 module GanttHelper
32
32
33 when :out
33 when :out
34 if gantt.zoom > 1
34 if gantt.zoom > 1
35 link_to_content_update l(:text_zoom_out),
35 link_to l(:text_zoom_out),
36 params.merge(gantt.params.merge(:zoom => (gantt.zoom - 1))),
36 params.merge(gantt.params.merge(:zoom => (gantt.zoom - 1))),
37 :class => 'icon icon-zoom-out'
37 :class => 'icon icon-zoom-out'
38 else
38 else
@@ -223,7 +223,7 module SortHelper
223 # Add project_id to url_options
223 # Add project_id to url_options
224 url_options = url_options.merge(:project_id => params[:project_id]) if params.has_key?(:project_id)
224 url_options = url_options.merge(:project_id => params[:project_id]) if params.has_key?(:project_id)
225
225
226 link_to_content_update(h(caption), url_options, :class => css)
226 link_to(caption, url_options, :class => css)
227 end
227 end
228
228
229 # Returns a table header <th> tag with a sort link for the named column
229 # Returns a table header <th> tag with a sort link for the named column
@@ -24,12 +24,12
24 <span class="pagination">
24 <span class="pagination">
25 <ul class="pages">
25 <ul class="pages">
26 <li class="previous page">
26 <li class="previous page">
27 <%= link_to_content_update("\xc2\xab " + l(:label_previous),
27 <%= link_to("\xc2\xab " + l(:label_previous),
28 params.merge(:from => @date_to - @days - 1),
28 params.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_content_update(l(:label_next) + " \xc2\xbb",
32 <%= link_to(l(:label_next) + " \xc2\xbb",
33 params.merge(:from => @date_to + @days - 1),
33 params.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 %>
@@ -332,12 +332,12
332 <table style="width:100%">
332 <table style="width:100%">
333 <tr>
333 <tr>
334 <td style="text-align:left;">
334 <td style="text-align:left;">
335 <%= link_to_content_update("\xc2\xab " + l(:label_previous),
335 <%= link_to("\xc2\xab " + l(:label_previous),
336 params.merge(@gantt.params_previous),
336 params.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_content_update(l(:label_next) + " \xc2\xbb",
340 <%= link_to(l(:label_next) + " \xc2\xbb",
341 params.merge(@gantt.params_next),
341 params.merge(@gantt.params_next),
342 :accesskey => accesskey(:next)) %>
342 :accesskey => accesskey(:next)) %>
343 </td>
343 </td>
General Comments 0
You need to be logged in to leave comments. Login now