<%= javascript_include_tag 'page_helper' %> <%= stylesheet_link_tag 'instiki' unless @inline_style %> <%= javascript_include_tag :defaults %> <%- if @web -%> <%= auto_discovery_link_tag(:atom, :controller => 'wiki', :web => @web.address, :action => 'atom_with_headlines') %> <%= auto_discovery_link_tag(:atom, :controller => 'wiki', :web => @web.address, :action => 'atom_with_content') %> <%- end -%>

<% if @page and (@page.name == 'HomePage') and %w( show published print ).include?(@action_name) %> <%= h(@web.name) + (@show_diff ? ' (changes)' : '') %> <% elsif @web %> <%= @web.name %>
<%= @title %> <% else %> <%= @title %> <% end %>

<%= render(:file => 'navigation') unless @web.nil? || @hide_navigation %> <%- if flash[:info] -%>
<%= escape_preserving_linefeeds flash[:info] %>
<%- end -%> <%- if @error or flash[:error] -%>
<%= escape_preserving_linefeeds(@error || flash[:error]) %>
<%- end -%> <%= @content_for_layout %> <%- if @show_footer -%> <%- end -%>