Sha256: 919b686cee29b4555d4f633c1a4350d581e6be318312327b8840212b4d54ff54

Contents?: true

Size: 773 Bytes

Versions: 4

Compression:

Stored size: 773 Bytes

Contents

<%= will_paginate @upcomingposts, :params => { :pagination => nil }, :param_name => :upcomingpage %>
<%= ajax_pagination_loadzone do %>
  <% @upcomingposts.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) %>
      <%= 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 %>
    </div>
  <% end %>
<% end %>
<%= will_paginate @upcomingposts, :params => { :pagination => nil }, :param_name => :upcomingpage %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ajax_pagination-0.4.0 spec/rails_app/app/views/posts/_upcomingpage.html.erb
ajax_pagination-0.3.0 spec/rails_app/app/views/posts/_upcomingpage.html.erb
ajax_pagination-0.2.0 spec/rails_app/app/views/posts/_upcomingpage.html.erb
ajax_pagination-0.1.0 spec/rails_app/app/views/posts/_upcomingpage.html.erb