<%= t "decidim.admin.titles.translation_sets" %>
<% if allowed_to? :create, :translation_set %> <%= link_to t("actions.new_translation_set", scope: "decidim.admin"), new_translation_set_path, class: "button tiny button--simple" %> <% end %> <% if allowed_to? :update, :organization %> <%= link_to t("actions.clear_cache", scope: "decidim.admin"), clear_caches_path, method: :delete, class: "button tiny button--simple", data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %>

<% @sets.each do |set| %> <% end %>
<%= t("models.translation_sets.fields.name", scope: "decidim.admin") %>
<% if allowed_to? :read, :translation %> <%= link_to translated_attribute(set.name), translation_set_translations_path(set) %>
<% else %> <%= translated_attribute(set.name) %> <% end %>
<% if allowed_to? :update, :translation_set, translation_set: set %> <%= icon_link_to "pencil", edit_translation_set_path(set), t("actions.configure", scope: "decidim.admin"), class: "action-icon--new" %> <% end %> <% if allowed_to? :destroy, :translation_set, translation_set: set %> <%= icon_link_to "circle-x", translation_set_path(set), t("actions.destroy", scope: "decidim.admin"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %>