Add pagination to diary entry lists.
This commit is contained in:
parent
b387800234
commit
691aab02fc
2 changed files with 13 additions and 2 deletions
|
@ -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') %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue