<%= ( csrf_meta_tag || '' ).gsub( /^/, ' ' ) %> <%- if @page and (@page.name == 'HomePage') and (%w( show published print ).include?(params['action'])) -%> <%= h(@web.name) + (@show_diff ? ' (changes)' : '') %> <%- elsif @web -%> <%= @title %> in <%= h @web.name %> <%- else -%> <%= @title %> <%- end -%> <%= javascript_include_tag 'page_helper' %> <%=(javascript_include_tag :defaults).gsub(/^/, ' ') %> <%= javascript_include_tag 'auto_sections' %> <% if @web -%> <%= auto_discovery_link_tag(:atom, {:controller => 'wiki', :web => @web.address, :action => 'atom_with_headlines'}, :title => 'Atom with headlines') %> <%= auto_discovery_link_tag(:atom, {:controller => 'wiki', :web => @web.address, :action => 'atom_with_content'}, :title => 'Atom with full content') %> <% end -%> <%= stylesheet_link_tag 'instiki', :media => 'all' %> <%= stylesheet_link_tag 'syntax', :media => 'all' %> <%= render 'shared/fixed_header' %>
<%= hubssolib_flash_tags.html_safe -%> <% if @error -%>
<%= ( escape_preserving_linefeeds(@error) ).html_safe %>
<% end -%> <% if @page and (@page.name == 'HomePage') and %w( show published print ).include?(action_name) -%>

<%= h(@web.name) + (@show_diff ? ' (changes)' : '') %>

<% elsif (@title.blank? == false) -%>

<%= @title %>

<% elsif @web -%>

<%= h(@web.name) %> <%= (@show_diff ? ' (changes)' : '') %>

<% end -%> <%= @content_for_layout %>
<%- if params['action'] != 'published' then -%>

Search the Wiki

<%= render(:file => 'search') unless @web.nil? %>

<%- end -%> <%= render 'shared/fixed_sidebar' %> <%- unless @web.nil? || @hide_navigation -%>

Navigation

<%= render(:file => 'navigation') %>
<%- end -%>
<%= render 'shared/fixed_footer' %>