app/views/alchemy/admin/pages/index.html.erb in alchemy_cms-4.0.6 vs app/views/alchemy/admin/pages/index.html.erb in alchemy_cms-4.1.0.beta

- old
+ new

@@ -1,17 +1,13 @@ -<% content_for :javascript_includes do %> - <meta name="turbolinks-cache-control" content="no-cache"> -<% end %> - <% content_for :toolbar do %> <div class="toolbar_buttons"> <%= render 'alchemy/admin/partials/site_select' %> <%= render 'alchemy/admin/partials/language_tree_select' %> <% if can?(:flush, Alchemy::Page) %> <div class="button_with_label"> <%= link_to( - render_icon('flush'), + render_icon(:eraser), alchemy.flush_admin_pages_path, :remote => true, :method => :post, :class => 'icon_button please_wait', :title => Alchemy.t('Flush page cache') @@ -20,22 +16,22 @@ </div> <% end %> <% if can?(:sort, Alchemy::Page) %> <div class="button_with_label"> <%= link_to( - render_icon(:sort), + render_icon(:random), alchemy.sort_admin_pages_path, method: :get, - class: 'icon_button please_wait', + class: 'icon_button', title: Alchemy.t('Sort pages') ) %> <label><%= Alchemy.t('Sort pages') %></label> </div> <% end %> <div class="button_with_label" id="clipboard_button"> <%= link_to_dialog( - render_icon("clipboard#{clipboard_empty?('pages') ? '' : ' full'}"), + render_icon(clipboard_empty?('pages') ? :clipboard : :paste), alchemy.admin_clipboard_path(:remarkable_type => 'pages'), { :title => Alchemy.t('Clipboard'), :size => '380x305' }, @@ -49,30 +45,18 @@ <%= text_field_tag 'filter', '', class: 'thin_border js_filter_field search_input_field', placeholder: Alchemy.t(:search), id: nil %> <%= render_icon :search %> - <%= link_to('', '#', { + <%= link_to(render_icon(:times, size: 'xs'), '#', { class: "js_filter_field_clear", title: Alchemy.t(:click_to_show_all) }) %> </div> <% end %> <div id="archive_all"> <% if @page_root %> - - <div id="sort_panel" style="display: none"> - <div class="info"> - <%= render_icon('info') %> - <%= Alchemy.t(:explain_sitemap_dragndrop_sorting) %> - </div> - <div class="buttons"> - <%= link_to( Alchemy.t(:cancel), alchemy.admin_pages_path, :class => 'button' ) %>&nbsp; - <%= submit_tag( Alchemy.t('save order'), :id => 'save_page_order', :class => 'button' ) %> - </div> - </div> - <h1 id="page_filter_result"></h1> <%= render 'sitemap', page_partial: 'page', full: !!@sorting %> <% elsif can?(:create, Alchemy::Page) %>