]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/list.rhtml
Send email notifications when people comment on diary entries. Closes #655.
[rails.git] / app / views / diary_entry / list.rhtml
index 31c370c6d2e78027181b80a0370b8eea1236fd3c..0ac45f9d220271dc8bd7835d6dbc1e413c694fcf 100644 (file)
 
 <%= render :partial => 'diary_entry', :collection => @entries %>
 
-<%= link_to "Older Entries", { :page => @entry_pages.current.previous } if @entry_pages.current.previous %>
+<%= link_to "Older Entries", { :page => @entry_pages.current.next } if @entry_pages.current.next %>
+<% if @entry_pages.current.next and @entry_pages.current.previous %>
 |
-<%= link_to "Newer Entries", { :page => @entry_pages.current.next } if @entry_pages.current.next %>
+<% end %>
+<%= link_to "Newer Entries", { :page => @entry_pages.current.previous } if @entry_pages.current.previous %>
 
 <br />