app/views/spud/admin/news_posts/index.html.erb in spud_blog-0.8.18 vs app/views/spud/admin/news_posts/index.html.erb in spud_blog-0.9.0
- old
+ new
@@ -1,6 +1,7 @@
<%= content_for :data_controls do %>
+ <%= link_to "Manage Categories", spud_admin_post_categories_path, :class => 'btn spud_blog_manage_categories', :title => 'Manage Categories' %>
<%= link_to "New Post", new_spud_admin_news_post_path, :class => "btn btn-primary", :title => "New Post" %>
<% end %>
<%=content_for :detail do %>
<table class="admin-table">
@@ -25,15 +26,19 @@
<%end%>
</td>
<td><%= post.author.full_name %></td>
<td><%= link_to(post.published_at.strftime('%m/%d/%Y'), news_post_path(post.url_name)) %></td>
<td align="right">
- <%= link_to 'Delete', spud_admin_news_post_path(post), :method => :delete, :confirm => 'Are you sure you want to delete this post?', :class => 'btn btn-danger' %>
+ <%= link_to 'Delete', spud_admin_news_post_path(post), :method => :delete, :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.PostCategories.index);
+ </script>
<%end%>
\ No newline at end of file