<% content_for(:title) { @page.name } %> <% 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: Alchemy.t(:page_infos), size: '520x320' }, { class: 'icon_button', title: Alchemy.t(:page_infos), 'data-alchemy-hotkey' => 'alt+i' } ) %>
<% if @page.layoutpage? %> <%= link_to_dialog( render_icon('settings'), alchemy.edit_admin_layoutpage_path(@page), { title: Alchemy.t(:edit_page_properties), size: '450x170' }, class: :icon_button, title: Alchemy.t(:edit_page_properties), 'data-alchemy-hotkey' => 'alt+e' ) %> <% else %> <%= link_to_dialog( render_icon('settings'), alchemy.configure_admin_page_path(@page), { title: Alchemy.t(:edit_page_properties), size: '450x720' }, class: :icon_button, title: Alchemy.t(:edit_page_properties), 'data-alchemy-hotkey' => 'alt+e' ) %> <% end %>
<% if can?(:publish, @page) && !@page.layoutpage? %>
<%= form_tag alchemy.publish_admin_page_path(@page), id: 'publish_page_form' do %> <%= button_tag class: 'icon_button', title: Alchemy.t(:explain_publishing) do %> <%= render_icon('publish') %> <% end %> <% end %>
<% end %>
<%= select_tag 'preview_size', preview_sizes_for_select, class: 'alchemy_selectbox medium' %>
<%= link_to render_icon(:reload), '#', { title: Alchemy.t('Reload Preview'), class: 'icon_button', id: 'reload_preview_button' } %>
<%= link_to render_icon(:element_window), '', { title: Alchemy.t(:hide_elements), class: 'icon_button' } %>
<% end %> <% content_for :javascripts do %> <% if Alchemy::Tinymce.custom_config_contents(@page).present? %> <%= render 'tinymce_custom_config' %> <% end %> <% end %>