Sha256: e9ac8cc28caad146d4630110f884284bddfcd820413223a1d9957c58eceb3ab4

Contents?: true

Size: 752 Bytes

Versions: 6

Compression:

Stored size: 752 Bytes

Contents

<%= ajax_links :section_id => "page" do %>
  <%= will_paginate @posts %>
<% end %>
<%= 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 %>
      <% if session[:admin] %>
        | <%= ajax_link_to 'Edit', edit_post_path(post), :section_id => "" %> |
        <%= ajax_link_to 'Destroy', post, :confirm => 'Are you sure?', :method => :delete %>
      <% end %>
    </div>
  <% end %>
<% end %>
<%= ajax_links :section_id => "page" do %>
  <%= will_paginate @posts %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

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