<%= link_to translated_attribute(category.name), edit_category_path(current_participatory_space, category) %>
|
<% if can? :update, category %>
<%= icon_link_to "pencil", edit_category_path(current_participatory_space, category), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
<% end %>
<% if can? :destroy, category %>
<% if category.unused? %>
<%= icon_link_to "circle-x", category_path(current_participatory_space, category), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
<% else %>
" data-tooltip="true" data-disable-hover="false">
<%= icon "circle-x", class: "action-icon action-icon--disabled" %>
<% end %>
<% end %>
|
<% category.subcategories.each do |subcategory| %>
<% end %>
<% end %>