From: Štefan Baebler Date: Mon, 15 Jun 2009 17:48:25 +0000 (+0000) Subject: next/previous page links maintain diary language X-Git-Tag: live~7562 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/63de62bf04b8813a709aa4d6d05ebb539307cc53 next/previous page links maintain diary language --- diff --git a/app/views/diary_entry/list.html.erb b/app/views/diary_entry/list.html.erb index ace466e9e..68c8c1266 100644 --- a/app/views/diary_entry/list.html.erb +++ b/app/views/diary_entry/list.html.erb @@ -25,9 +25,9 @@ <%= render :partial => 'diary_entry', :collection => @entries %> - <%= link_to t('diary_entry.list.older_entries'), { :page => @entry_pages.current.next } if @entry_pages.current.next %> + <%= link_to t('diary_entry.list.older_entries'), { :page => @entry_pages.current.next, :language => params[:language] } if @entry_pages.current.next %> <% if @entry_pages.current.next and @entry_pages.current.previous %>|<% end %> - <%= link_to t('diary_entry.list.newer_entries'), { :page => @entry_pages.current.previous } if @entry_pages.current.previous %> + <%= link_to t('diary_entry.list.newer_entries'), { :page => @entry_pages.current.previous, :language => params[:language] } if @entry_pages.current.previous %>
<% end %>