<%= 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 %> |