This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/views/layouts/application.rhtml

58 lines
2.0 KiB
Plaintext
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%= page_title -%></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<%= stylesheet_link_tag 'application', :media => 'all' %>
<%= javascript_include_tag :defaults %>
<script type="text/javascript">
<%= @content_for_script %>
</script>
<style type="text/css">
<%= @content_for_stylesheet %>
</style>
</head>
<body>
<div id="container">
<% flash.keys.each do |key| -%>
<div id="<%= key -%>">
<%= flash[key] %>
</div>
<% end -%>
<div id="header">
<h1><%= content_title -%></h1>
<h2><%= secondary_title -%></h2>
</div>
<div id="page">
<div id="content">
<%= yield %>
</div>
<% unless @hide_sidebar -%>
<div id="sidebar">
<%= link_to_unless_current 'Browse The Beer Wiki', pages_path -%><br />
<%= link_to_unless_current 'Browse Beers', beers_path -%><br />
<%= link_to_unless_current 'Beverage Styles', styles_path -%><br />
<%= link_to_unless_current 'Browse Breweries', breweries_path -%><br />
<%= link_to_unless_current 'Discussions', discussions_path -%><br />
<%= link_to_unless_current 'Peoples', peoples_path -%><br />
<%= link_to_unless_current 'Roles', roles_path -%><br />
<%= link_to_unless_current 'Help With BarleySodas', :controller => 'help', :action => 'index' -%><br />
<% unless logged_in? -%><%= link_to_unless_current 'Login', new_session_path -%><% else -%><%= link_to 'Logout', session_path(:id => session[:people_title]), :method => :delete -%><% end %>
<hr />
<%= yield :sidebar %>
</div>
<% end -%>
<br style="clear:both;" />
</div>
<div id="footer">
<hr />
<p><a href="http://www.penguincoder.org" title="Built by PenguinCoder">PenguinCoder</a> | <a href="http://www.quotedprintable.com/pages/scribbish" title="Scribbish">Scribbish</a> | <a href="http://collaboa.barleysodas.com" title="BarleySodas Development">BarleySodas Development</a></p>
</div>
</div>
</body>