<% if user_can?('delete_event_record') %>
<% if not @event.suppressed %> <% if !['edit', 'update'].include?(controller.action_name) %>
<%= link_to I18n.t("actions.edit"), {:controller => :events, :action => :edit, :id => @event.id}, :class => "btn btn-sm btn-primary" %>
<% end %> <% end %>
<%= button_delete_action url_for(:controller => :events, :action => :delete, :id => @event.id) %>
<% end %>