app/views/pulitzer/posts/_show_slug.html.erb in pulitzer-0.5.0 vs app/views/pulitzer/posts/_show_slug.html.erb in pulitzer-0.5.1
- old
+ new
@@ -1,6 +1,8 @@
<div class="pulitzer-row">
<ul class="list">
<li><%= post.slug %></li>
- <li><%= ajax_link "Edit", edit_slug_post_path(post), {}, dom_target(post) %></li>
+ <% unless post.post_type.singleton_post? %>
+ <li><%= ajax_link "Edit", edit_slug_post_path(post), {}, dom_target(post) %></li>
+ <% end %>
</ul>
</div>