Sha256: 66730687c99004fc577d8beb6d12028809daaf3db87a7d919f4a23d544b798ad

Contents?: true

Size: 478 Bytes

Versions: 5

Compression:

Stored size: 478 Bytes

Contents

<%= login_required class: "actions", id: "new_blog_post_link" do %>
  <%= link_to t(:new_blog_post, scope: 'blogit.posts'), new_post_path %>
<% end %>

<% if @posts.any? %>

  <%= render partial: "blogit/posts/post",
    collection: @posts,
    spacer_template: "blog_post_spacer",
    locals: {show_comments_count: (Blogit.configuration.include_comments == :active_records) }  %>
<% else %>

  <%= render partial: "blogit/posts/empty" %>

<% end %>

<%= render "pagination" %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blogit-1.0.0.rc1 app/views/blogit/posts/index.html.erb
blogit-0.8.0 app/views/blogit/posts/index.html.erb
blogit-0.7.0 app/views/blogit/posts/index.html.erb
blogit-0.6.0 app/views/blogit/posts/index.html.erb
blogit-0.5.1 app/views/blogit/posts/index.html.erb