%= will_paginate @posts, :params => { :pagination => nil } %>
<%= ajax_pagination_loadzone do %>
<% @posts.each do |post| %>
<%= post.title %>
Published on <%= post.published_at.strftime('%d %B %Y') if post.published_at? %>
<%= simple_format(post.content) %>
<%= link_to 'Show', post %>
<% if session[:admin] %>
| <%= link_to 'Edit', edit_post_path(post) %> |
<%= link_to 'Destroy', post, :confirm => 'Are you sure?', :method => :delete %>
<% end %>
<% end %>
<% end %>
<%= will_paginate @posts, :params => { :pagination => nil } %>