Skip to content

Instantly share code, notes, and snippets.

@seivan
Created February 3, 2010 07:49
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 seivan/293455 to your computer and use it in GitHub Desktop.
Save seivan/293455 to your computer and use it in GitHub Desktop.
!!! Strict
%html{html_attrs}
%head
%title
= h(yield(:title) || "Untitled")
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
= stylesheet_link_tag 'application'
= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js", "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js", "application", :cache => true
/[if IE]
= stylesheet_link_tag 'ie'
%a{ :href => 'http://www.mozilla.com/en-US/firefox/' }
%h1 Get Firefox
= yield(:head)
%body
#container
#user_nav
= link_to 'Edit Profile', edit_user_path(:current) if can? current_user
= link_to 'Logout', logout_path if can? current_user
- else
= link_to 'Login', login_path if can? current_user
= link_to 'Signup', signup_path if can? current_user
#messages
- flash.each do |name, message|
%div{:id => "flash_#{name}"}=message
- if show_title?
%h1=h yield(:title)
= yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment