app/views/pulitzer/justification_styles/_show.html.erb in pulitzer-0.14.4 vs app/views/pulitzer/justification_styles/_show.html.erb in pulitzer-0.15.0
- old
+ new
@@ -1,10 +1,14 @@
<div class="pulitzer-row">
<div class="pulitzer-span one-fifth"><%= justification_style.display_name %></div>
<div class="pulitzer-span one-fifth"><%= justification_style.css_class_name %></div>
- <div class="pulitzer-span ten-percent">
- <%= ajax_link "Edit", edit_justification_style_path(justification_style), {}, dom_target(justification_style) %>
- </div>
- <div class="pulitzer-span ten-percent">
- <%= ajax_delete 'Delete', justification_style_path(justification_style), {}, dom_target(justification_style) %>
- </div>
+ <% if justification_style.post_type_version.locked? %>
+ <div class="pulitzer-span one-fifth">live</div>
+ <% else %>
+ <div class="pulitzer-span ten-percent">
+ <%= ajax_link "Edit", edit_justification_style_path(justification_style), {}, dom_target(justification_style) %>
+ </div>
+ <div class="pulitzer-span ten-percent">
+ <%= ajax_delete 'Delete', justification_style_path(justification_style), {}, dom_target(justification_style) %>
+ </div>
+ <% end %>
</div>