%html %head %title Fanforce %meta{'http-equiv'=>'Content-Type', content:'text/html; charset=iso-8859-1'}/ %meta{'http-equiv'=>'Content-Language', content: 'en-us'}/ = stylesheet '/engagement.css' %body.layout-engagement .lyt-root .lyt-header #hello #logo = yield .lyt-root-footer .lyt-footer %span#distributed-by %a{href: "http://#{Fanforce.base_domain}"} Powered by Fanforce. = javascript "//#{Fanforce.eye_domain}/#{params[:organization_slug]}-fanforce.js#{'?DEBUG=true&DYNAMIC=true' if ENV['RACK_ENV']=='development'}" do FF.option('track_browse_webpage', false) FF.option('dynamic_url', FF.browser.uri.scheme + '://' + '#{FanforcePlugin._id}.${SHORT_DOMAIN}/${INITIATIVE_SLUG_ID}') = yield_content :after_fanforce_js :coffeescript FF.on('logout', -> $('#hello').html('') ) FF.organization (organization)-> if organization.website_url $('#distributed-by').html('Distributed by ' + organization.name + '. ') $('#logo').html('
') if organization.logo_url else $('#distributed-by').html('Distributed by ' + organization.name + '. ') $('#logo').html('') if organization.logo_url FF.visitor (visitor)-> return if !visitor.access_level $('#hello').html('