Sha256: e2acf807348bc1f987fd25f84c0a7de2f5e73a0d009f6d166a648f29f7c0fb87

Contents?: true

Size: 1.67 KB

Versions: 12

Compression:

Stored size: 1.67 KB

Contents

<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
%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 '/engage.css'
  %body.layout-engage
    .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 "http://#{Fanforce.eye_domain}/#{params[:organization_slug]}-fanforce.js#{'?force_compile=1&env=development' if ENV['RACK_ENV']=='development'}"
  = yield_content :after_fanforce_js
  :coffeescript
    FF.on('logout', ->
      $('#hello').html('')
    )
    FF.organization (organization)->
      if organization.website_url
        $('#distributed-by').html('Distributed by <a href="' + organization.website_url + '">' + organization.name + '</a>.&nbsp;')
        $('#logo').html('<div class="logo"><a href="' + organization.website_url + '"><img src="' + organization.logo_url + '"></a></div>') if organization.logo_url
      else
        $('#distributed-by').html('Distributed by ' + organization.name + '.&nbsp;')
        $('#logo').html('<div class="logo"><img src="' + organization.logo_url + '"></div>') if organization.logo_url
    FF.visitor (visitor)->
      return if !visitor.access_level
      $('#hello').html('<div class="hello"><div class="hello-wrapper"><span class="greeting">Hello, ' + visitor.first_name + '!</span><a href="javascript: FF.logout(); void(0)">Logout</a></div></div>')

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fanforce-plugin-factory-0.26.3 lib/fanforce/plugin_factory/layouts/engage.haml
fanforce-plugin-factory-0.26.2 lib/fanforce/plugin_factory/layouts/engage.haml
fanforce-plugin-factory-0.26.1 lib/fanforce/plugin_factory/layouts/engage.haml
fanforce-plugin-factory-0.26.0 lib/fanforce/plugin_factory/layouts/engage.haml
fanforce-plugin-factory-0.25.0 lib/fanforce/plugin_factory/layouts/engage.haml
fanforce-plugin-factory-0.24.1 lib/fanforce/plugin_factory/layouts/engage.haml
fanforce-plugin-factory-0.24.0 lib/fanforce/plugin_factory/layouts/engage.haml
fanforce-plugin-factory-0.23.1 lib/fanforce/plugin_factory/layouts/engage.haml
fanforce-plugin-factory-0.23.0 lib/fanforce/plugin_factory/layouts/engage.haml
fanforce-plugin-factory-0.22.1 lib/fanforce/plugin_factory/layouts/engage.haml
fanforce-plugin-factory-0.22.0 lib/fanforce/plugin_factory/layouts/engage.haml
fanforce-plugin-factory-0.21.0 lib/fanforce/plugin_factory/layouts/engage.haml