<% edit_link( decidim_admin.static_pages_path, :read, :static_page ) %>

<%= t "decidim.pages.index.title" %>

<%= t(".subheading", name: current_organization.name) %>

<% if @topics.any? %>

<%= t ".topics" %>

<% @topics.each do |topic| %> <% if topic.pages.any? %>

<%= link_to translated_attribute(topic.title), page_path(topic.pages.first), class: "card__link" %>

<%= translated_attribute topic.description %>

    <% topic.pages.each do |page| %>
  • <%= link_to translated_attribute(page.title), page_path(page) %>
  • <% end %>
<% end %> <% end %>
<% end %> <% if @orphan_pages.any? %>

<%= t ".standalone_pages" %>

<% @orphan_pages.each do |page| %>

<%= link_to translated_attribute(page.title), page_path(page), class: "card__link" %>

<%== strip_tags html_truncate(translated_attribute(page.content), length: 140, separator: "...") %>
<% end %>
<% end %>