%= stylesheet_link_tag 'application', :media => 'all' %> <%= javascript_include_tag :defaults %>
<% flash.keys.each do |key| -%>
<%= flash[key] %>
<% end -%>
<%= content_title -%>
<%= secondary_title -%>
<%= yield %>
<% unless @hide_sidebar -%>
<%= link_to_unless_current 'Browse The Beer Wiki', pages_path -%>
<%= link_to_unless_current 'Browse Beers', beers_path -%>
<%= link_to_unless_current 'Browse Breweries', breweries_path -%>
<%= link_to_unless_current 'Discussions', discussions_path -%>
<%= link_to_unless_current 'Peoples', peoples_path -%>
<%= link_to_unless_current 'Roles', roles_path -%>
<% unless logged_in? -%><%= link_to_unless_current 'Login', new_session_path -%><% else -%><%= link_to 'Logout', session_path(:id => session[:people_title]), :method => :delete -%><% end %>
<%= yield :sidebar %>
<% end -%>