<%= fa_icon("flag") %> <%= Archangel.t(:index_resource, resource: @templates.model_name.human.titleize) %>

<%= render "buttons" %>
<% if @templates.present? %> <%= paginate @templates %>
<% @templates.each do |template| %> <% end %>
<%= Archangel.t(:name) %> <%= Archangel.t(:partial) %> <%= Archangel.t(:actions) %>
<%= template.name %> <%= template.partial? %> <%= link_to(fa_icon("info-circle", text: Archangel.t(:show)), backend_template_path(template), class: "btn btn-info btn-sm") %> <%= link_to(fa_icon("check-circle", text: Archangel.t(:edit)), edit_backend_template_path(template), class: "btn btn-warning btn-sm") %> <%= link_to(fa_icon("times-circle", text: Archangel.t(:destroy)), backend_template_path(template), class: "btn btn-danger btn-sm", method: :delete, data: { confirm: Archangel.t(:are_you_sure) }) %>
<%= paginate @templates %> <% else %>

<%= Archangel.t(:no_resources, resources: @templates.model_name.human.pluralize.downcase) %>

<% end %>