%- model_class = resource_name.downcase.gsub('::', '') %>
<%%- model_class = <%= resource_name.classify %> -%>
<%- attributes.each do |column| -%>
- <%%= model_class.human_attribute_name(:<%= column.name %>) %>:
- <%%= @<%= model_class %>.<%= column.name %> %>
<%- end -%>
<%%= link_to t('.back', default: t("helpers.links.back")),
<%= controller_name %>_path, class: 'btn btn-outline-info' %>
<%%= link_to t('.edit', default: t("helpers.links.edit")),
edit_<%= model_class %>_path(@<%= model_class %>), class: 'btn btn-outline-dark' %>
<%%= link_to t('.destroy', default: t("helpers.links.destroy")),
<%= model_class %>_path(@<%= model_class %>),
method: 'delete',
data: { confirm: t('.confirm', default: t("helpers.links.confirm", default: 'Are you sure?')) },
class: 'btn btn-outline-danger' %>