diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-03 14:01:32 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-03 14:01:32 +0000 |
commit | 0f0fbeb26df61312aeac7cd3dabf3c01f36b8838 (patch) | |
tree | 2a02ce4c39ba1e93134e17468395469d0d968580 /app/views/activities | |
parent | 7bca8c42121aa2b8d794e3654017d3432c629fe1 (diff) | |
download | redmine-0f0fbeb26df61312aeac7cd3dabf3c01f36b8838.tar.gz redmine-0f0fbeb26df61312aeac7cd3dabf3c01f36b8838.zip |
Makes all pagination-like links use #link_to_content_update (#5138).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5301 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/activities')
-rw-r--r-- | app/views/activities/index.html.erb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb index 03cc8c681..a2748cc9c 100644 --- a/app/views/activities/index.html.erb +++ b/app/views/activities/index.html.erb @@ -21,16 +21,14 @@ <%= content_tag('p', l(:label_no_data), :class => 'nodata') if @events_by_day.empty? %> <div style="float:left;"> -<%= link_to_remote(('« ' + l(:label_previous)), - {:update => "content", :url => params.merge(:from => @date_to - @days - 1), :method => :get, :complete => 'window.scrollTo(0,0)'}, - {:href => url_for(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))}) %> +<%= link_to_content_update('« ' + 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))) %> </div> <div style="float:right;"> -<%= link_to_remote((l(:label_next) + ' »'), - {:update => "content", :url => params.merge(:from => @date_to + @days - 1), :method => :get, :complete => 'window.scrollTo(0,0)'}, - {:href => url_for(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))}) unless @date_to >= Date.today %> +<%= link_to_content_update(l(:label_next) + ' »', + 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))) unless @date_to >= Date.today %> </div> <% other_formats_links do |f| %> |