diff --git a/app/views/content/display/_floating_action_buttons.html.erb b/app/views/content/display/_floating_action_buttons.html.erb index db6c9807..5e5afc3f 100644 --- a/app/views/content/display/_floating_action_buttons.html.erb +++ b/app/views/content/display/_floating_action_buttons.html.erb @@ -58,29 +58,3 @@ <% end %> -<% if @content.persisted? && editing && current_user.can_delete?(@content) %> - <%= link_to send("toggle_archive_#{@content.class.name.downcase}_path", @content), - class: 'btn-floating btn-small halfway-fab waves-effect waves-light white left tooltipped hoverable', - style: 'z-index: 1;', - data: { - confirm: @content.archived? ? "This will un-archive this page." : "Are you sure you want to archive this #{@content.class.name.downcase}?", - position: 'bottom', enterDelay: '500', tooltip: (@content.archived? ? "Un-archive" : "Archive") + " this page" - } do %> - <%= 'un' if @content.archived? %>archive - <% end %> -<% end %> - -<% if @content.persisted? && editing && current_user.can_delete?(@content) %> - <%= link_to @content, - class: 'btn-floating btn-small halfway-fab waves-effect waves-light white delete left tooltipped hoverable', - style: 'z-index: 1; left: 64px;', - method: :delete, - data: { - confirm: "Are you sure? This will delete this entire #{@content.class.name.downcase}!", - position: 'bottom', enterDelay: '500', tooltip: "Delete this page" - } do %> - delete - <% end %> -<% end %> - -