<% content_for :javascript_includes do %> <% end %> <% content_for :toolbar do %> <%= render "alchemy/admin/pages/toolbar" %> <% end %> <%= content_tag :div, id: "archive_all", class: [@view == "list" && "resources-table-wrapper with_tag_filter"] do %> <% if @view == "list" %> <%= render "alchemy/admin/resources/table_header", resources_instance_variable: @pages %> <% if @pages.any? %> <%= render "table" %> <% elsif search_filter_params.present? %> <%= render_message do %> <%= Alchemy.t("No pages found") %> <% end %> <% elsif can?(:create, Alchemy::Page) %> <%= render partial: "create_language_form" %> <% end %> <%= paginate @pages, scope: alchemy, theme: "alchemy" %>
<%= render "filter_bar" if resource_has_filters %> <%= render "tag_list" if resource_has_tags %>
<% else %> <% if @page_root %>

<%= render "sitemap", page_partial: "page" %> <% elsif can?(:create, Alchemy::Page) %> <%= render partial: "create_language_form" %> <% else %> <%= render_message :warn do %>

No language root page found.

Please ask the admin to create one.

<% end %> <% end %> <% end %> <% end %>