Skip to content

Instantly share code, notes, and snippets.

@tmking
Created July 23, 2009 15:35
Show Gist options
  • Save tmking/153088 to your computer and use it in GitHub Desktop.
Save tmking/153088 to your computer and use it in GitHub Desktop.
%h1 The Brands We Offer!
%table{ :cellpadding => 0, :cellspacing => 0, :style => 'display: inline;' }
%tr
%td{ :align => 'center' }
- if @brand == 'yamaha' then
= image_tag "/images/brands/artists1.gif", :class => 'yamaha'
%td{ :align => 'center' }
= image_tag "/images/brands/logos/#{@brand}.png">
%br/
%h2= @taglines[@brand]
%td{ :align => 'center' }
- if @brand == 'yamaha' then
= image_tag "/images/brands/artists2.gif", :class => 'yamaha'
%table{ :cellspacing => 5, :cellpadding => 0, :class => 'brandmenu' }
%tr
- @instrument_types.each do |t|
%td{ :valign => 'top' }
%a{ :href => "#{create_link(t)}", :class => 'brandmenuHeader' }
= t.capitalize
%a{ :href => "#{create_link(t)}", :class => 'brandmenuBody' }
= image_tag "/images/brands/#{@brand}_#{t.singularize}.png"
%p/
%a{ :href => '/brands', :class => 'button', :style => 'width: 200px;' }
Return to Brands page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment