<% content_for :toolbar do %>
<%= render 'alchemy/admin/partials/site_select' %> <%= render 'alchemy/admin/partials/language_tree_select' %> <% if can?(:flush, Alchemy::Page) %>
<%= link_to( render_icon('flush'), alchemy.flush_admin_pages_path, :remote => true, :method => :post, :class => 'icon_button please_wait', :title => Alchemy.t('Flush page cache') ) %>
<% end %> <% if can?(:sort, Alchemy::Page) %>
<%= link_to( render_icon('sort'), alchemy.sort_admin_pages_path, :complete => '', :method => :get, :remote => true, :class => 'icon_button please_wait', :title => Alchemy.t('Sort pages') ) %>
<% end %>
<%= link_to_dialog( render_icon("clipboard#{clipboard_empty?('pages') ? '' : ' full'}"), alchemy.admin_clipboard_path(:remarkable_type => 'pages'), { :title => Alchemy.t('Clipboard'), :size => '380x305' }, :class => 'icon_button', :title => Alchemy.t('Show clipboard') ) %>
<%= text_field_tag 'filter', '', class: 'thin_border js_filter_field search_input_field', placeholder: Alchemy.t(:search), id: nil %> <%= render_icon :search %> <%= link_to('', '#', { class: "js_filter_field_clear", title: Alchemy.t(:click_to_show_all) }) %>
<% end %>
<% if @page_root %>

<%= render 'sitemap', page_partial: 'page', full: !!@sorting %> <% 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 %>