1
0
Fork 0
forked from OpenNeo/impress

remove campaign banner from most pages

This commit is contained in:
Emi Matchu 2011-10-10 22:06:46 -05:00
parent df62e3540f
commit 70cf262387
2 changed files with 15 additions and 12 deletions

View file

@ -14,7 +14,9 @@ module ApplicationHelper
end end
end end
def campaign_progress(&block) CAMPAIGN_ACTIVE = false
def campaign_progress(options={}, &block)
if CAMPAIGN_ACTIVE || options[:always]
include_campaign_progress_requirements include_campaign_progress_requirements
if block_given? if block_given?
@ -28,6 +30,7 @@ module ApplicationHelper
content_tag(:div, content, :class => 'campaign-progress-label') content_tag(:div, content, :class => 'campaign-progress-label')
content_tag(:div, html, :class => 'campaign-progress-wrapper') content_tag(:div, html, :class => 'campaign-progress-wrapper')
end end
end
def canonical_path(resource) def canonical_path(resource)
content_for :meta, tag(:link, :rel => 'canonical', :href => url_for(resource)) content_for :meta, tag(:link, :rel => 'canonical', :href => url_for(resource))

View file

@ -1,7 +1,7 @@
- title "Support Dress to Impress" - title "Support Dress to Impress"
%h2 Thank you so much for all your help. We made it! %h2 Thank you so much for all your help. We made it!
= campaign_progress do = campaign_progress(:always => true) do
We've received We've received
= surround '$', ',' do = surround '$', ',' do
%span.campaign-raised %span.campaign-raised