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

62 lines
2.3 KiB
Plaintext
Raw Permalink 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 %>
<%= javascript_include_tag 'control.modal.js' %>
<%= javascript_include_tag 'control.rating.js' %>
<script type="text/javascript">
<%= yield :script %>
</script>
<style type="text/css">
<%= yield :stylesheet %>
</style>
<%= yield :auto_discoveries %>
</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 'Beer Wiki', pages_path -%><br />
<%= link_to_unless_current 'Beers', :controller => :beers, :action => :index, :brewery_id => nil -%><br />
<% if logged_in? -%><%= link_to_unless_current 'My Beers', experience_path(:id => session[:people_title_for_url]) -%><br /><% end %>
<%= link_to_unless_current 'Styles', styles_path -%><br />
<%= link_to_unless_current 'Breweries', breweries_path -%><br />
<%= link_to_unless_current 'Peoples', peoples_path -%><br />
<%= link_to_unless_current 'Gallery', galleries_path -%><br />
<% if has_permission_for_action?(:index, :roles) -%><%= link_to_unless_current 'Roles', roles_path -%><br /><% end -%>
<% unless logged_in? -%><%= link_to_unless_current 'Login', new_session_path -%><% else -%><%= link_to 'My Page', people_path(session[:people_title_for_url]) -%><br /><%= 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 />
2008-07-09 15:57:12 -04:00
<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://github.com/penguincoder/barleysodas" title="BarleySodas Development">BarleySodas Development</a></p>
</div>
</div>
</body>