Add pagination to diary entry lists.

This commit is contained in:
Tom Hughes 2008-01-18 18:20:15 +00:00
parent b387800234
commit 691aab02fc
2 changed files with 13 additions and 2 deletions

View file

@ -13,5 +13,11 @@
<%= render :partial => 'diary_entry', :collection => @entries %>
<%= link_to "Older Entries", { :page => @entry_pages.current.previous } if @entry_pages.current.previous %>
|
<%= link_to "Newer Entries", { :page => @entry_pages.current.next } if @entry_pages.current.next %>
<br />
<%= link_to(image_tag("RSS.gif", :size => "16x16", :border => 0), :action => 'rss') %>
<%= auto_discovery_link_tag(:atom, :action => 'rss') %>