Sha256: b2cbf982fd943c8e3494558911f6a91777240b759a3f45c938c0a2414ce85cfc
Contents?: true
Size: 1.31 KB
Versions: 4
Compression:
Stored size: 1.31 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 "New Post", new_admin_news_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> </th> </tr> </thead> <tbody> <% @posts.each do |post| %> <tr> <td> <%= link_to post.title, news_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 class="text-right"> <%= link_to 'Edit', edit_admin_news_post_path(post), :class => 'btn btn-small' %> <%= link_to 'Delete', admin_news_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