%= 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 'Beverage Styles', styles_path -%>
<%= link_to_unless_current 'Browse Breweries', breweries_path -%>
<%= link_to_unless_current 'BarleySodas People', peoples_path -%>
<%= link_to_unless_current 'Gallery', galleries_path -%>
<% if has_permission_for_action?(:index, :roles) -%><%= link_to_unless_current 'Roles', roles_path -%>
<% end -%> <% unless logged_in? -%><%= link_to_unless_current 'Login', new_session_path -%><% else -%><%= link_to "Logout #{session[:people_title]}", session_path(:id => session[:people_title]), :method => :delete -%><% end %>
<%= yield :sidebar %>
<% end -%>