<% content_for(:title) { @page.name } %> <% content_for(:main_menu_style) { 'collapsed-menu' } %> <% 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 %>
<%= link_to_dialog( render_icon('info-circle'), alchemy.info_admin_page_path(@page), { title: Alchemy.t(:page_infos), size: '520x320' }, { class: 'icon_button', 'data-alchemy-hotkey' => 'alt+i' } ) %>
<% if @page.layoutpage? %> <%= link_to_dialog( render_icon(:cog), 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(:cog), alchemy.configure_admin_page_path(@page), { title: Alchemy.t(:edit_page_properties), size: '450x680' }, class: :icon_button, title: Alchemy.t(:edit_page_properties), 'data-alchemy-hotkey' => 'alt+e' ) %> <% end %>
<% if can?(:publish, @page) %>
<%= 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('cloud-upload-alt') %> <% end %> <% end %>
<% end %> <% unless @page.layoutpage? %>
<%= form_tag alchemy.visit_admin_page_path(@page), id: 'visit_page_form' do %> <%= button_tag class: 'icon_button', disabled: !@page.public? do %> <%= render_icon('external-link-alt') %> <% end %> <% end %>
<% end %> <% if @page.has_hint? %>
<%= render_hint_for(@page) %> <% end %>
<%= select_tag 'preview_size', preview_sizes_for_select, class: 'alchemy_selectbox medium' %>
<% if @preview_urls.many? %>
<%= select_tag 'preview_url', options_for_select(@preview_urls), class: 'alchemy_selectbox large' %>
<% end %>
<%= link_to render_icon(:redo), nil, { title: Alchemy.t('Reload Preview'), class: 'icon_button', id: 'reload_preview_button' } %>
<%= link_to render_icon(:bars), nil, { 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 %> <% content_for :javascript_includes do %> <% end %> <% end %>