<%= render "alchemy/admin/partials/site_select" %> <%= render "alchemy/admin/partials/language_tree_select" %> <%= toolbar_button( icon: "file-add", url: alchemy.new_admin_page_path(language: @current_language), hotkey: 'alt+n', tooltip_placement: "top-start", dialog_options: { title: Alchemy.t('Add a page'), size: '340x215', overflow: true }, label: Alchemy.t('Add a page'), if_permitted_to: [:create, Alchemy::Page] ) %>
<% if can?(:flush, Alchemy::Page) %>
"> <%= link_to( render_icon(:eraser), alchemy.flush_admin_pages_path, remote: true, method: :post, class: "icon_button please_wait", title: Alchemy.t("Flush page cache") ) %>
<% end %>
"> <%= link_to_dialog( render_icon(:clipboard, style: clipboard_empty?("pages") ? "line" : "fill"), alchemy.admin_clipboard_path(remarkable_type: "pages"), { title: Alchemy.t("Clipboard"), size: "380x305" }, class: "icon_button", title: Alchemy.t("Show clipboard"), id: "clipboard_button" ) %>
"> <%= link_to( render_icon(:"menu-2"), alchemy.admin_pages_path(view: "tree"), class: ["icon_button", @view != "list" && "active"].compact ) %>
"> <%= link_to( render_icon("sort-desc", style: nil), alchemy.admin_pages_path(view: "list"), class: ["icon_button", @view == "list" && "active"].compact ) %>
<% search_filter_params[:view] = "list" %> <%= render "alchemy/admin/partials/search_form", url: alchemy.admin_pages_path(search_filter_params.except(:q, :page)), additional_params: [:view] %>