Sha256: 98ab090d7cf6e20c33fd37ff1b4288f98aa19fae5245671cf4fd1102d335fff9

Contents?: true

Size: 818 Bytes

Versions: 6

Compression:

Stored size: 818 Bytes

Contents

<%= ajax_links :section_id => "upcomingpage" do %>
  <%= will_paginate @upcomingposts, :param_name => :upcomingpage %>
<% end %>
<%= ajax_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 %>
<%= ajax_links :section_id => "upcomingpage" do %>
  <%= will_paginate @upcomingposts, :param_name => :upcomingpage %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ajax_pagination-0.6.5 spec/rails_app/app/views/posts/_upcomingpage.html.erb
ajax_pagination-0.6.4 spec/rails_app/app/views/posts/_upcomingpage.html.erb
ajax_pagination-0.6.3 spec/rails_app/app/views/posts/_upcomingpage.html.erb
ajax_pagination-0.6.2 spec/rails_app/app/views/posts/_upcomingpage.html.erb
ajax_pagination-0.6.1 spec/rails_app/app/views/posts/_upcomingpage.html.erb
ajax_pagination-0.6.0 spec/rails_app/app/views/posts/_upcomingpage.html.erb