Sha256: 20808e381122d407a48ae23bce672a521d18f66870eca9fa23fd8bfee7b40554
Contents?: true
Size: 750 Bytes
Versions: 2
Compression:
Stored size: 750 Bytes
Contents
<%= will_paginate @posts, :params => { :pagination => nil } %> <%= ajax_loadzone do %> <% @posts.each do |post| %> <div style="border-bottom: 1px solid black; padding-bottom: 10px;"> <p><h3><%= post.title %></h3><i>Published on <%= post.published_at.strftime('%d %B %Y') if post.published_at? %></i></p> <%= 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 %> </div> <% end %> <% end %> <%= will_paginate @posts, :params => { :pagination => nil } %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ajax_pagination-0.5.1 | spec/rails_app/app/views/posts/_page.html.erb |
ajax_pagination-0.5.0 | spec/rails_app/app/views/posts/_page.html.erb |