Created
April 19, 2010 13:05
-
-
Save al2o3cr/371023 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<def tag="page" attrs="title, full-title"> | |
<% full_title ||= "#{title} : #{app_name}" %> | |
<html merge-attrs> | |
<head param> | |
<title param><%= strip_tags full_title %></title> | |
<stylesheet name="reset" /> | |
<do param="scripts"> | |
<javascript param name="prototype, effects, dragdrop, controls, lowpro, hobo-rapid"/> | |
<if-ie version="lt IE 7" param="fix-ie6"> | |
<javascript name="IE7"/> | |
<javascript name="ie7-recalc"/> | |
</if-ie> | |
<javascript param="application-javascript" name="application"/> | |
<hjq-assets/> | |
<javascript name="front"/> | |
<javascript name="jquery.corners" /> | |
<do param="custom-scripts"/> | |
</do> | |
<stylesheet name="hobo-bits" /> | |
<stylesheet name="master" /> | |
<if-ie version="lt IE 7" param> | |
<stylesheet name="ie6" /> | |
</if-ie> | |
</head> | |
<body param> | |
<set-scoped flash-rendered="&false"> | |
<ajax-progress param/> | |
<div id="wrapper"> | |
<div id="wrapper-padding"> | |
<header id="header" class="page-header" param> | |
<do unless="&controller.is_a?(FrontController)"> | |
<span class="homeLink"><a href="/">« Home</a></span> | |
</do> | |
<a href="/"><img src="/images/logo.gif" alt="Sitting Made Simple" id="logo" /></a> | |
<div id="login-box"> | |
<account-nav param /> | |
</div> | |
</header> | |
<% if current_user.is_a?(Guest) || current_user.is_a?(Admin) %> | |
<do param="all-nav"> | |
<do unless="&@hide_nav"> | |
<set-scoped current-navigation="" current-subnav=""> | |
<div id="main-nav"> | |
<main-nav for-type="¤t_user.class" param /> | |
</div> | |
<section id="subnav" param="subnav-wrap" if="&scope.current_subnav"> | |
<% subnav_tag = "subnav-#{scope.current_navigation}" %> | |
<call-tag tag="#{subnav_tag}" if="&respond_to?(subnav_tag.underscore)" /> | |
</section> | |
</set-scoped> | |
</do> | |
</do> | |
<% else %> | |
<div id="main-title"> | |
<h2><%= title %></h2> | |
<do param="page-title" /> | |
</div> | |
<% end %> | |
<div id="content-wrapper" style="clear:both"> | |
<div id="content-area" class="page-content" param="page-content"> | |
<section with-flash-messages param="content"/> | |
</div> | |
<div class="clear clearfix"></div> | |
</div> | |
</div> | |
<footer class="page-footer" id="wrapper-btm" param> | |
<p>Copyright © <%= Time.now.year %> • Sitting Made Simple, LLC. • All rights reserved. </p> | |
<p><dev-user-changer if="&Rails.env.development?"/></p> | |
<do param="footer-extra" /> | |
</footer> | |
</div> | |
<page-scripts param/> | |
</set-scoped> | |
</body> | |
</html> | |
</def> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment