Skip to content

Commit

Permalink
ability to turn branding off via url.
Browse files Browse the repository at this point in the history
  • Loading branch information
karledurante committed Oct 19, 2012
1 parent fe3a4ee commit 8bd80f1
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 57 deletions.
4 changes: 4 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
module ApplicationHelper

def branding_enabled?
params[:branding] == 'true'
end
end
104 changes: 53 additions & 51 deletions app/views/home/_footer.html.erb
Original file line number Diff line number Diff line change
@@ -1,56 +1,58 @@
<div class="service">
<div class="banner">
<%= image_tag "ci_logo_big.jpg" %>
<% if branding_enabled? %>
<div class="service">
<div class="banner">
<%= image_tag "ci_logo_big.jpg" %>
</div>
</div>
</div>

<div class="quality">
<div class="banner">
<%= image_tag "sample_shirt.jpg" %>
<div class="quality">
<div class="banner">
<%= image_tag "sample_shirt.jpg" %>
</div>
</div>
</div>

<div class="movember">
<div class="banner">
<%= image_tag "mo_logo.jpg" %>
<div class="movember">
<div class="banner">
<%= image_tag "mo_logo.jpg" %>
</div>
</div>
</div>

<div class="reset_columns"></div>

<div class="service">
<h3>CustomInk Service</h3>
<p>CustomInk is printing and individually
shipping our T-shirts to you with the
same signature care used to serve their
one million plus customers. They will
batch print the shirts twice during the
month of November and be delivered by
the following dates.</p>
</div>

<div class="quality">
<h3>Quality T-Shirts</h3>
<p>Our T-shirts are printed on American
Apparel Products. They are
Contemporary, lightweight, stylish and
made in the USA.</p>

<p>
<%= link_to 'Uni-sex sizing line-up', 'http://www.customink.com/items/sizing/15000_lineup/standard.htm', :target => "_new" %> <br/>
<%= link_to 'Ladies sizing line-up', 'http://www.customink.com/items/sizing/30000_lineup/standard.htm', :target => "_new" %>
</p>
</div>

<div class="movember">
<h3>The Movember Effect</h3>
<p>Movember is responsible for the
sprouting of moustaches on thousands
of men’s faces, in the US and around the
world. With their Mo's, these men raise
vital awareness and funds for men's
health issues</p>
<p><%=link_to "Learn More", "http://us.movember.com/mens-health/"%></p>
</div>

<div class="reset_columns">&nbsp;</div>

<div class="reset_columns"></div>

<div class="service">
<h3>CustomInk Service</h3>
<p>CustomInk is printing and individually
shipping our T-shirts to you with the
same signature care used to serve their
one million plus customers. They will
batch print the shirts twice during the
month of November and be delivered by
the following dates.</p>
</div>

<div class="quality">
<h3>Quality T-Shirts</h3>
<p>Our T-shirts are printed on American
Apparel Products. They are
Contemporary, lightweight, stylish and
made in the USA.</p>

<p>
<%= link_to 'Uni-sex sizing line-up', 'http://www.customink.com/items/sizing/15000_lineup/standard.htm', :target => "_new" %> <br/>
<%= link_to 'Ladies sizing line-up', 'http://www.customink.com/items/sizing/30000_lineup/standard.htm', :target => "_new" %>
</p>
</div>

<div class="movember">
<h3>The Movember Effect</h3>
<p>Movember is responsible for the
sprouting of moustaches on thousands
of men’s faces, in the US and around the
world. With their Mo's, these men raise
vital awareness and funds for men's
health issues</p>
<p><%=link_to "Learn More", "http://us.movember.com/mens-health/"%></p>
</div>

<div class="reset_columns">&nbsp;</div>
<% end %>
17 changes: 11 additions & 6 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
<div class ="body">
<div class="header">
<div class="inner_header">
<div class="logo"><%=link_to(image_tag("ci_logo_small.jpg"), "http://www.customink.com") %></div>

<% if branding_enabled? %>
<div class="logo"><%=link_to(image_tag("ci_logo_small.jpg"), "http://www.customink.com") %></div>
<% end %>
<div class="share">
<%= render :partial => "/home/share_buttons" %>
</div>
Expand All @@ -36,11 +39,13 @@
</div>

<div class="footer">
<div class="inner">
CustomInk is your source for custom t-shirts. <%= link_to "Privacy Policy", "http://www.customink.com/policies/#privacy", :class => "first", :target => 'new' %> <%= link_to "User Agreement", "http://www.customink.com/policies", :target => 'new' %>
<br/>
&copy 2012 CustomInk, LLC. All rights reserved. CustomInk is a registered trademark of CustomInk LLC. "T-shirts Unite!" and the "Inky" octopus are trademarks of CustomInk, LLC.
</div>
<% if branding_enabled? %>
<div class="inner">
CustomInk is your source for custom t-shirts. <%= link_to "Privacy Policy", "http://www.customink.com/policies/#privacy", :class => "first", :target => 'new' %> <%= link_to "User Agreement", "http://www.customink.com/policies", :target => 'new' %>
<br/>
&copy 2012 CustomInk, LLC. All rights reserved. CustomInk is a registered trademark of CustomInk LLC. "T-shirts Unite!" and the "Inky" octopus are trademarks of CustomInk, LLC.
</div>
<% end %>
</div>


Expand Down

0 comments on commit 8bd80f1

Please sign in to comment.