<h1><%= t("scaffold.pagetitle_show", model: @element.class.model_name.human) %></h1>

<%= render @element %>

<div class="action-row">
  <%= link_to t("scaffold.link_edit", model: @element.model_name.human), edit_element_path(@element) %>
  <%= link_to t("scaffold.link_index", model: @element.model_name.human(count: 2)), page_elements_path(@element.page) %>
  <%= button_to t("scaffold.link_destroy", model: @element.model_name.human), @element, method: :delete, class: "btn btn-outline-danger" %>
</div>
