Sha256: 5eacc415e4ea19fd82ef36cd1ceb12a6554250d88d57ed40ce18f2f6b0e9f660
Contents?: true
Size: 1.6 KB
Versions: 4
Compression:
Stored size: 1.6 KB
Contents
<%= content_for :data_controls do %> <%= link_to "Manage Categories", admin_post_categories_path, :class => 'btn spud_blog_manage_categories', :title => 'Manage Categories' %> <%= link_to "Manage Comments", admin_post_comments_path, :class => 'btn', :title => 'Manage Comments' %> <%= link_to "New Post", new_admin_post_path, :class => "btn btn-primary", :title => "New Post" %> <% end %> <%=content_for :detail do %> <table class="table table-striped"> <thead> <tr> <th>Title</th> <th>Author</th> <th>Published At</th> <th>Comments Pending</th> <th> </th> </tr> </thead> <tbody> <% @posts.each do |post| %> <tr> <td> <%= link_to post.title, blog_post_path(post.url_name), :target => :blank %> <% if !post.visible? %> <span class="badge">Draft</span> <% end %> </td> <td><%= post.author.full_name %></td> <td><%= post.published_at.strftime('%m/%d/%Y') %></td> <td> <%= post.pending_comments.length %> <%= link_to "Manage", admin_post_post_comments_path(:post_id => post.id), :class => 'spud-post-comments-manage' %> </td> <td class="text-right"> <%= link_to 'Edit', edit_admin_post_path(post), :class => 'btn btn-small' %> <%= link_to 'Delete', admin_post_path(post), :method => :delete, :data => {:confirm => 'Are you sure you want to delete this post?'}, :class => 'btn btn-small btn-danger' %> </td> </tr> <%end%> </tbody> </table> <div class="spud_admin_pagination"> <%= will_paginate @posts %> </div> <script> $(document).ready(spud.admin.post_categories.index); </script> <%end%>
Version data entries
4 entries across 4 versions & 1 rubygems