app/views/admin/posts/show.html.erb in blog_logic-1.0.0 vs app/views/admin/posts/show.html.erb in blog_logic-1.1.0
- old
+ new
@@ -27,12 +27,19 @@
<%- else -%>
<div style="background-color: #ffffff; padding: 1em;">
<%= @post.content.html_safe -%>
</div>
<%- end -%>
+</fieldset>
+
+<fieldset class="form_container">
+ <%= legend_tag 'Categories' -%>
+ <ul>
+ <%- @post.blog_categories.each do |c| -%>
+ <li><%= link_to c.name, c.url -%></li>
+ <%- end -%>
+ </ul>
<div class="link_block">
<%= link_to 'Edit', edit_admin_blog_post_path(@blog, @post), :class => 'link_button' -%>
<%= link_to 'Back', admin_blog_posts_path(@blog), :class => 'link_button' -%>
</div>
-</fieldset>
-
-
+</fieldset>
\ No newline at end of file