Skip to content
Newer
Older
100644 9 lines (8 sloc) 308 Bytes
8dd6fdb @machida first commit
authored Nov 3, 2010
1 - @posts.each do |post|
2 = partial :article, :locals => {:post => post}
3 .pager
4 %ul
5 - if @posts.pager.previous_page
6 %li.previous= link_to t.newer, "?page=#{@posts.pager.previous_page}"
7 - if @posts.pager.next_page
8 %li.next= link_to t.older, "?page=#{@posts.pager.next_page}"
Something went wrong with that request. Please try again.