<%= page.title_with_meta.html_safe %>
<% if defined?(::Refinery::I18n) and ::Refinery::I18n.frontend_locales.many? and
(locales = page.translations.collect{|t| t.locale}).present? %>
<% locales.each do |locale| %>
<%= link_to refinery_icon_tag("flags/#{locale}.png", :size => '16x11'),
edit_admin_page_url(page, :switch_locale => locale),
:class => 'locale' %>
<% end %>
<% end %>
<%= link_to refinery_icon_tag('application_go.png'), page.url,
:target => "_blank",
:title => t('.view_live_html') %>
<%= link_to refinery_icon_tag('application_edit.png'), edit_admin_page_url(page),
:title => t('edit', :scope => 'admin.pages') %>
<%= link_to refinery_icon_tag('delete.png'), admin_page_url(page),
:class => "cancel confirm-delete",
:title => t('delete', :scope => 'admin.pages'),
:confirm => t('message', :scope => 'shared.admin.delete', :title => page.title_with_meta.gsub(/\ ?.*<\/em>/, "")),
:method => :delete if page.deletable? %>
<% if (children = page.children).any? -%>
<%= render :partial => 'page', :collection => children %>
<% end -%>