<% 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_overlay_window( render_icon('settings'), alchemy.configure_admin_page_path(@page), { :title => t('edit_page_properties'), :size => @page.layoutpage? ? '340x150' : '410x620' }, :class => 'icon_button', :title => t('edit_page_properties') ) -%>
<%- if configuration(:cache_pages) && !@page.layoutpage? -%>
<%= form_tag alchemy.publish_admin_page_path(@page), :id => 'publish_page_form' do -%> <% end -%>
<%- end -%>
<%= link_to_function( render_icon('preview_window'), "Alchemy.openPreviewWindow()", { :title => t('Show Preview Window'), :class => 'icon_button' } ) %>
<%= link_to_function( render_icon('element_window'), "Alchemy.openElementsWindow()", { :title => t('Show Elements Window'), :class => 'icon_button' } ) %>
<%- end -%> <%- content_for :javascripts do -%> <%= tinymce_javascript_tags %> <%- end -%>