%= 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) %>
<%= ajax_link_to 'Show', post, :pagination => "" %>
<% if session[:admin] %>
| <%= ajax_link_to 'Edit', edit_post_path(post), :pagination => "" %> |
<%= ajax_link_to 'Destroy', post, :confirm => 'Are you sure?', :method => :delete, :pagination => "" %>
<% end %>
<% end %>
<% end %>
<%= will_paginate @posts, :params => { :pagination => nil } %>