<% content_for(:title) { @page.name } %> <% content_for(:subnav_additions) do %> <% @locked_pages.each do |page| %> <% if @page == page %> <%= render partial: 'page_status' %> <% else %> <% end %> <% end %> <% end %> <% content_for(:toolbar) do %>
<%= form_tag alchemy.unlock_admin_page_path(@page, redirect_to: @layoutpage ? alchemy.admin_layoutpages_path : alchemy.admin_pages_path), id: 'unlock_page_form' do %> <% end %>
<% unless @page.layoutpage? %>
<%= form_tag alchemy.visit_admin_page_path(@page), id: 'visit_page_form' do %> <% end %>
<% end %>
<%= link_to_dialog( render_icon('info'), alchemy.info_admin_page_path(@page), { title: _t(:page_infos), size: '480x320' }, { class: 'icon_button', title: _t(:page_infos), 'data-alchemy-hotkey' => 'alt+i' } ) %>
<%= link_to_dialog( render_icon('settings'), alchemy.configure_admin_page_path(@page), { title: _t(:edit_page_properties), size: @page.layoutpage? ? '410x150' : '410x660' }, class: :icon_button, title: _t(:edit_page_properties), 'data-alchemy-hotkey' => 'alt+e' ) %>
<% if configuration(:cache_pages) && !@page.layoutpage? %>
<%= form_tag alchemy.publish_admin_page_path(@page), id: 'publish_page_form' do %> <% end %>
<% end %>
<%= select_tag('preview_size', preview_sizes_for_select, class: 'alchemy_selectbox medium') %>
<%= link_to render_icon(:reload), '#', { title: _t('Reload Preview'), class: 'icon_button', id: 'reload_preview_button' } %>
<%= link_to render_icon(:element_window), '', { title: _t('Hide Elements'), class: 'icon_button' } %>
<% end %> <% content_for :javascripts do %> <% end %>