From c9ec4895ead9b869f93ac73514bb390e752b367b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 7 Apr 2013 23:09:19 +0100 Subject: [PATCH] Fix next/previous links on diary pages properly --- app/views/diary_entry/list.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/diary_entry/list.html.erb b/app/views/diary_entry/list.html.erb index bbd86e269..2939ec7e6 100644 --- a/app/views/diary_entry/list.html.erb +++ b/app/views/diary_entry/list.html.erb @@ -35,17 +35,17 @@ <% end %> <% if @entries.size < @page_size -%> - <%= link_to t('diary_entry.list.older_entries'), params.merge(:page => @page + 1 ) %> - <% else -%> <%= t('diary_entry.list.older_entries') %> + <% else -%> + <%= link_to t('diary_entry.list.older_entries'), params.merge(:page => @page + 1 ) %> <% end -%> | <% if @page > 1 -%> - <%= t('diary_entry.list.newer_entries') %> - <% else -%> <%= link_to t('diary_entry.list.newer_entries'), params.merge(:page => @page - 1) %> + <% else -%> + <%= t('diary_entry.list.newer_entries') %> <% end -%> <% end %> -- 2.39.5