<%= t(".title") %>
<% if can? :create, Decidim::Sortitions::Sortition %> <%= link_to t("actions.new", scope: "decidim.sortitions.admin", name: t("models.sortition.name", scope: "decidim.sortitions.admin")), new_sortition_path, class: "button tiny button--simple" if can? :manage, current_component %> <% end %>

<% sortitions.each do |sortition| %> <% end %>
<%= t("models.sortition.fields.reference", scope: "decidim.sortitions.admin") %> <%= t("models.sortition.fields.title", scope: "decidim.sortitions.admin") %> <%= t("models.sortition.fields.created_at", scope: "decidim.sortitions.admin") %>
<%= sortition.reference %> <%= translated_attribute sortition.title %> <%= l sortition.created_at, format: :short %> <%= icon_link_to "eye", sortition_path(sortition), t("actions.show", scope: "decidim.sortitions.admin"), class: "action-icon--preview" %> <% if can? :destroy, sortition %> <%= icon_link_to "pencil", edit_sortition_path(sortition), t("actions.edit", scope: "decidim.sortitions.admin"), class: "action-icon--edit" %> <% end %> <% if can? :destroy, sortition %> <%= icon_link_to "circle-x", confirm_destroy_sortition_path(sortition), t("actions.destroy", scope: "decidim.sortitions.admin"), class: "action-icon--remove" %> <% end %>
<%= paginate sortitions, theme: "decidim" %>