No pages found
<% else -%>-
<% @root_pages.each do |page| -%>
<%= render partial: "pagelisting", locals: { page: page } %>
<% end -%>
% 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? %>
<%= 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) %>.
<% else %> <% end %> <% end %>
No pages found
<% else -%>