app/views/alchemy/admin/pages/index.html.erb in alchemy_cms-3.2.1 vs app/views/alchemy/admin/pages/index.html.erb in alchemy_cms-3.3.0.rc1
- old
+ new
@@ -1,12 +1,5 @@
-<% if @locked_pages.present? %>
- <% content_for(:subnav_additions) do %>
- <label><%= _t('Active Pages') %> »</label>
- <%= render partial: 'locked_page', collection: @locked_pages %>
- <% end %>
-<% end %>
-
<% content_for :toolbar do %>
<div class="toolbar_buttons">
<%= render :partial => 'alchemy/admin/partials/language_tree_select' %>
<div class="toolbar_spacer"></div>
<% if can?(:flush, Alchemy::Page) %>
@@ -15,13 +8,13 @@
render_icon('flush'),
alchemy.flush_admin_pages_path,
:remote => true,
:method => :post,
:class => 'icon_button please_wait',
- :title => _t('Flush page cache')
+ :title => Alchemy.t('Flush page cache')
) %>
- <label><%= _t('Flush page cache') %></label>
+ <label><%= Alchemy.t('Flush page cache') %></label>
</div>
<% end %>
<% if can?(:sort, Alchemy::Page) %>
<div class="button_with_label" id="page_sorting_button">
<%= link_to(
@@ -29,63 +22,63 @@
alchemy.sort_admin_pages_path,
:complete => '',
:method => :get,
:remote => true,
:class => 'icon_button please_wait',
- :title => _t('Sort pages')
+ :title => Alchemy.t('Sort pages')
) %>
- <label><%= _t('Sort pages') %></label>
+ <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'}"),
alchemy.admin_clipboard_path(:remarkable_type => 'pages'),
{
- :title => _t('Clipboard'),
+ :title => Alchemy.t('Clipboard'),
:size => '380x305'
},
:class => 'icon_button',
- :title => _t('Show clipboard')
+ :title => Alchemy.t('Show clipboard')
) %>
- <label><%= _t('Show clipboard') %></label>
+ <label><%= Alchemy.t('Show clipboard') %></label>
</div>
</div>
<div class="js_filter_field_box">
<%= text_field_tag 'filter', '',
class: 'thin_border js_filter_field',
id: 'search_field',
- placeholder: _t(:search) %>
+ placeholder: Alchemy.t(:search) %>
<%= render_icon :search %>
<%= link_to('', '#', {
class: "js_filter_field_clear",
- title: _t(:click_to_show_all)
+ 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') %>
- <%= _t(:explain_sitemap_dragndrop_sorting) %>
+ <%= Alchemy.t(:explain_sitemap_dragndrop_sorting) %>
</div>
<div class="buttons">
- <%= link_to( _t(:cancel), alchemy.admin_pages_path, :class => 'button' ) %>
- <%= submit_tag( _t('save order'), :id => 'save_page_order', :class => 'button' ) %>
+ <%= link_to( Alchemy.t(:cancel), alchemy.admin_pages_path, :class => 'button' ) %>
+ <%= submit_tag( Alchemy.t('save order'), :id => 'save_page_order', :class => 'button' ) %>
</div>
</div>
<h1 id="page_filter_result"></h1>
<h2 id="sitemap_heading">
- <span class="page_name"><%= _t('Name') %></span>
- <span class="page_infos"><%= _t('Status') %></span>
+ <span class="page_name"><%= Alchemy.t('Name') %></span>
+ <span class="page_infos"><%= Alchemy.t('Status') %></span>
</h2>
- <%= render :partial => 'sitemap' %>
+ <%= render 'sitemap', page_partial: 'page', full: !!@sorting %>
<% elsif can?(:create, Alchemy::Page) %>
<%= render partial: 'create_language_form' %>