Skip to content

Instantly share code, notes, and snippets.

@dankozlowski
Created May 25, 2011 05:00
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 dankozlowski/990370 to your computer and use it in GitHub Desktop.
Save dankozlowski/990370 to your computer and use it in GitHub Desktop.
!!! Strict
%html
%head
= render "shared/head"
//%link{ :href => "http://fonts.googleapis.com/css?family=Arvo", :rel => "stylesheet", :type => "text/css" }
//%meta{ :"http-equiv" => "Content-Type", :content => "text/html", :charset => "utf-8" }
%body
#container_inner
- if request.request_uri == "/"
#container_index{ :id => @body_id }
= render "shared/header"
- if flash[:notice].present? || flash[:error].present?
#notice
%h1= flash[:notice] if flash[:notice].present?
%h1= flash[:error] if flash[:error].present?
= yield
= render "shared/footer"
- else
#container{ :id => @body_id }
= render "shared/header"
- if flash[:notice].present? || flash[:error].present?
#notice
%h1= flash[:notice] if flash[:notice].present?
%h1= flash[:error] if flash[:error].present?
= yield
= render "shared/footer"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment