Skip to content

Instantly share code, notes, and snippets.

@olkeene
Created March 26, 2009 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olkeene/86049 to your computer and use it in GitHub Desktop.
Save olkeene/86049 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title><%= yield :title || "Philtro" %></title>
<%= yield :head -%>
</head>
<body>
<%= partial "/layouts/header" %>
<div id="container">
<%# here goes the main navigation bar; there may also be a sidebar for subnavigation %>
<div id="header">
<div id="navbar">
<ul class="nav-menu">
<li class="dashboard"><%= link_to 'Dashboard', dashboard_path %></li>
<li class="news"><%= link_to 'News', feeds_path %></li>
<li class="twitter"><%= link_to 'Twitter', tweets_path %></li>
</ul>
</div>
</div>
<div id="content">
<%# this is placed above the sidebar, full width of the page %>
<div id="flasher">
<%= flash_messages %>
</div>
<%= yield :before_body -%>
<%= yield :body -%>
<%= yield :after_body -%>
<!-- footer -->
<div id="footer">
<p><%= partial 'shared/copyrights' %></p>
</div>
</div>
</div>
<%= yield :bottom -%>
<%= partial 'shared/google_analytics' unless @disable_google_analystic -%>
</body>
</html>
<% content_for :body do -%>
<div id="main">
<%= yield %>
</div>
<% end %>
<% content_for :after_body do -%>
<div id="sidebar">
<%= yield :sidebar %>
</div>
<% end %>
<%= partial 'layouts/base' %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment