Skip to content

Instantly share code, notes, and snippets.

@anveo
Created January 6, 2010 17:58
Show Gist options
  • Save anveo/270472 to your computer and use it in GitHub Desktop.
Save anveo/270472 to your computer and use it in GitHub Desktop.
!!!
%html{html_attrs}
%head
%meta{"http-equiv" => 'Content-Type', :content => 'text/html;charset=utf-8'}
%title= h(page_title)
%meta{ :name => "google-site-verification", :content=>"mjzr_NgYoftDSKWNmfplJMK4xZMbSxMQXqjz771H2XU" }
%meta{ :name => "keywords", :content => "#{h(meta_keywords)}" }
%meta{ :name => "description", :content => "#{h(meta_description)}" }
%link{ :rel => "shortcut icon", :href => "/favicon.ico", :type => "image/x-icon"}/
= javascript_include_tag 'jquery-1.3.2.min', 'jquery.tools.min'
= yield :javascript_header
= stylesheet_link_tag %w(styles)
= yield :head
%body
#flash_wrapper
-flash.each do |key, msg|
%p{:class => key}= msg
#header
#logo
%a{:href => root_path}
%img{:src => "/images/graphics/bandwith_logo.png", :alt => "Bandwith", :width => 256, :height => 60}
#menu
%ul
%li#nav_home= link_to "Home", root_path
%li#nav_music= link_to "Music Store", bands_path
- if current_user && current_user.band
%li#nav_post= link_to "Post Your Music", new_song_path
- else
%li#nav_post= link_to "Post Your Music", "#"
- if current_user
%li#nav_account
=link_to "My Account", dashboard_path
=link_to "Logout", logout_path
=link_to "<span>#{current_user.credits}</span> Get Credits", "#", {:id=>"nav_credits", :rel =>"#overlay_credits"}
- else
%li#nav_post= link_to "Login", login_path
%li#nav_post= link_to "Create Account", new_user_path
.clear
.overlay#overlay_credits
.contentWrap
%form{:id => "form_get_credits", :name => "form_get_credits", :style => "width:380px;"}
%h1.white Get Credits
%div{:style => "border-bottom:dotted #ccc 1px;"} &nbsp;
- Product.all.each do |product|
%label.big
= product.name
= link_to "Add to Cart", line_items_path(:product_id => product), :method => :post
.clear &nbsp;
%label
%button{:type => "submit"} Purchase Credits
.clear &nbsp;
= render 'shared/header'
= yield
= render 'shared/footer'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment