Sha256: 9befc2fdb7df4a6c465fe0c1a62ddce3884b237f802c151115d966c9e08bd6eb

Contents?: true

Size: 360 Bytes

Versions: 8

Compression:

Stored size: 360 Bytes

Contents

<%= link_to 'Add new blog post', new_admin_blog_post_path, :class => 'big button' %>

<h1>Blog Posts</h1>

<ul class='list posts'>
  <% @posts.each do |post| %>
    <%= render :partial => 'post', :object => post %>
  <% end %>
</ul>

<% if defined?(WillPaginate) %>
  <%= will_paginate @posts %>
<% elsif defined?(Kaminari)%>
  <%= paginate @posts %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
comfy_blog-0.1.8 app/views/admin/blog/posts/index.html.erb
comfy_blog-0.1.7 app/views/admin/blog/posts/index.html.erb
comfy_blog-0.1.6 app/views/admin/blog/posts/index.html.erb
comfy_blog-0.1.5 app/views/admin/blog/posts/index.html.erb
comfy_blog-0.1.4 app/views/admin/blog/posts/index.html.erb
comfy_blog-0.1.3 app/views/admin/blog/posts/index.html.erb
comfy_blog-0.1.2 app/views/admin/blog/posts/index.html.erb
comfy_blog-0.1.1 app/views/admin/blog/posts/index.html.erb