% 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" %>
<% else %> <% if @page_root %> <%= render "sitemap", page_partial: "page" %> <% elsif can?(:create, Alchemy::Page) %> <%= render partial: "create_language_form" %> <% else %> <%= render_message :warn do %>Please ask the admin to create one.
<% end %> <% end %> <% end %> <% end %>