Skip to content

Instantly share code, notes, and snippets.

@alvin2ye
Created July 30, 2009 02:33
Show Gist options
  • Save alvin2ye/158515 to your computer and use it in GitHub Desktop.
Save alvin2ye/158515 to your computer and use it in GitHub Desktop.
application.layout
<!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">
<head>
<title><%= h(yield(:title) || PROJECT_NAME) -%></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Ocean shipping" />
<meta name="keywords" content="Ocean shipping" />
<%= javascript_include_tag :defaults -%>
<%# stylesheet_link_tag "http://yui.yahooapis.com/2.6.0/build/reset-fonts-grids/reset-fonts-grids.css" %>
<%= stylesheet_link_tag "reset-fonts-grids" %>
<%= auto_complete_includes %>
<%= stylesheet_link_tag "application" %>
<!--[if IE]>
<%= stylesheet_link_tag "ie/base" %>
<![endif]-->
<%= yield :head -%>
</head>
<body>
<div id="doc3" class="yui-t6">
<div id="hd">
<div id="nav">
<%= render :partial => '/home/global_links' -%>
<h1><%= PROJECT_NAME -%></h1>
<%= render :partial => '/home/tabs' -%>
</div>
</div>
<div id="bd">
<%- flash.each do |name, msg| -%>
<%= content_tag :div, msg, :id => "flash_#{name}", :class => "flash #{name}" %>
<%- end -%>
<%= yield -%>
</div>
<div id="ft">
<p> &copy; 2009 <%= PROJECT_NAME -%>(<%= SITE_URL %>) </p>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment