<% self.page_title = "Pages" self.page_description = "Viewing pages" if PagesCore.config.localizations? self.page_description_links = 'In ' + PagesCore.config.locales.map{ |l, n| link_to_unless_current n, admin_pages_path(l) }.join(link_separator) end %> <% content_for :sidebar do %> <% if policy(Page).new? %>

New page

<%= form_tag new_admin_page_path, method: :get do %> In <%= select_tag 'parent', options_from_collection_for_select(@root_pages, 'id', 'name') %> <%= submit_tag "Go", name: nil %> <% end %>

You can also <%= link_to "create a new root page", new_admin_page_path(@locale) %>.

Structure

<% else %>   <% end %> <% end %>
<% if @root_pages.length < 1 -%>

No pages found

<% else -%> <% end -%>