<% add_decidim_page_title(t("page_topics", scope: "decidim.admin.titles")) %>

<%= t("page_topics", scope: "decidim.admin.titles") %> <% if allowed_to? :create, :attachment_collection %> <%= link_to t("static_page_topics.new.create", scope: "decidim.admin"), [:new, :static_page_topic], class: "button button__sm button__secondary expanded small new" %> <% end %>

<% if topics.any? %>
<% topics.each do |topic| %> <% end %>
<%= t("activemodel.attributes.static_page_topic.name") %>
<%= link_to translated_attribute(topic.title), [:edit, topic] %> <% if allowed_to? :update, :static_page_topic, topic: topic %> <%= icon_link_to "pencil-line", [:edit, topic], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %> <% end %> <% if allowed_to? :destroy, :static_page_topic, topic: topic %> <%= icon_link_to "delete-bin-line", topic, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %>
<% end %>