<%
  creating = defined?(creating) && creating
  editing  = defined?(editing)  && editing
%>

<%
  raw_model = content.is_a?(ContentSerializer) ? content.raw_model : content
%>

<% if user_signed_in? && current_user.can_delete?(raw_model) %>
  <%= render partial: 'content/display/sidebar/actions', locals: { content: content, creating: creating, editing: editing } %>
<% end %>