]> source.dussan.org Git - redmine.git/commitdiff
Removed #link_to_content_update.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 30 Jun 2016 20:17:19 +0000 (20:17 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 30 Jun 2016 20:17:19 +0000 (20:17 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15598 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb
app/helpers/calendars_helper.rb
app/helpers/gantt_helper.rb
app/helpers/sort_helper.rb
app/views/activities/index.html.erb
app/views/gantts/show.html.erb

index 288f734f20db1b7b7f4ca8e11093ce2e576a835a..aade3cc4d7d5f45debbd61771e65c4cfbf4fa9c1 100644 (file)
@@ -1365,8 +1365,4 @@ module ApplicationHelper
     extend helper
     return self
   end
-
-  def link_to_content_update(text, url_params = {}, html_options = {})
-    link_to(text, url_params, html_options)
-  end
 end
index cf624d2a8911729188d03f6d6ef6f0405dd05d06..cb13276255cd1cc619e4725c872306e757b04dd3 100644 (file)
@@ -53,6 +53,6 @@ module CalendarsHelper
   end
 
   def link_to_month(link_name, year, month, options={})
-    link_to_content_update(h(link_name), params.merge(:year => year, :month => month), options)
+    link_to(link_name, params.merge(:year => year, :month => month), options)
   end
 end
index 77d3b8364509f8eaa7b226f91a1766afbcc21157..3c68cadaedc77f2c0ffe1655c466e799d27f3e89 100644 (file)
@@ -23,7 +23,7 @@ module GanttHelper
     case in_or_out
     when :in
       if gantt.zoom < 4
-        link_to_content_update l(:text_zoom_in),
+        link_to l(:text_zoom_in),
           params.merge(gantt.params.merge(:zoom => (gantt.zoom + 1))),
           :class => 'icon icon-zoom-in'
       else
@@ -32,7 +32,7 @@ module GanttHelper
 
     when :out
       if gantt.zoom > 1
-        link_to_content_update l(:text_zoom_out),
+        link_to l(:text_zoom_out),
           params.merge(gantt.params.merge(:zoom => (gantt.zoom - 1))),
           :class => 'icon icon-zoom-out'
       else
index d6ac8bd22286f80546541b661efec6613b8e70be..8c17f115d22cefd2bd5d17b4f265bc8f41fd6712 100644 (file)
@@ -223,7 +223,7 @@ module SortHelper
      # Add project_id to url_options
     url_options = url_options.merge(:project_id => params[:project_id]) if params.has_key?(:project_id)
 
-    link_to_content_update(h(caption), url_options, :class => css)
+    link_to(caption, url_options, :class => css)
   end
 
   # Returns a table header <th> tag with a sort link for the named column
index 748e60fd129e439781c960a3d1ea7fac0daaf5cb..d3a780f0c7028d420bc65bf2247ed0daad5edcb1 100644 (file)
 <span class="pagination">
   <ul class="pages">
     <li class="previous page">
-<%= link_to_content_update("\xc2\xab " + l(:label_previous),
+<%= link_to("\xc2\xab " + l(:label_previous),
                    params.merge(:from => @date_to - @days - 1),
                    :title => l(:label_date_from_to, :start => format_date(@date_to - 2*@days), :end => format_date(@date_to - @days - 1)),
                    :accesskey => accesskey(:previous)) %>
     </li><% unless @date_to >= User.current.today %><li class="next page">
-<%= link_to_content_update(l(:label_next) + " \xc2\xbb",
+<%= link_to(l(:label_next) + " \xc2\xbb",
                    params.merge(:from => @date_to + @days - 1),
                    :title => l(:label_date_from_to, :start => format_date(@date_to), :end => format_date(@date_to + @days - 1)),
                    :accesskey => accesskey(:next)) %><% end %>
index 34ee14c5a7e40f1a23c56c5f485fdfd0df360536..1337fefe9a053010c640c459411f7e77b3e46245 100644 (file)
 <table style="width:100%">
 <tr>
   <td style="text-align:left;">
-    <%= link_to_content_update("\xc2\xab " + l(:label_previous),
+    <%= link_to("\xc2\xab " + l(:label_previous),
                                params.merge(@gantt.params_previous),
                                :accesskey => accesskey(:previous)) %>
   </td>
   <td style="text-align:right;">
-    <%= link_to_content_update(l(:label_next) + " \xc2\xbb",
+    <%= link_to(l(:label_next) + " \xc2\xbb",
                                params.merge(@gantt.params_next),
                                :accesskey => accesskey(:next)) %>
   </td>