Sha256: e476303c99a08226c0c6046a35787350e2570b2cf72676925930634bb847801e

Contents?: true

Size: 1.99 KB

Versions: 19

Compression:

Stored size: 1.99 KB

Contents

-# PluginFactoryScaffolding : FILE
-#######################################################################################################################
!!! 5
%html.visitor-layout
  %head
    %title Engagement Page
    %meta(http-equiv='Content-Type' content='text/html; charset=iso-8859-1')
    %meta(http-equiv='Content-Language' content='en-us')
    = stylesheet '/visitor.css'
    = javascript '//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.js'
    = javascript "//#{Fanforce.eye_domain}/#{params[:organization_slug]}-fanforce.js#{'?DEBUG=true&DYNAMIC=true' if ENV['RACK_ENV']=='development'}"
    :javascript
      FF.option('core:disable_browse_webpage', true)
      FF.option('dynamic_url', FF.browser.uri.scheme + '://' + '#{Plugin._id}.{{SHORT_DOMAIN}}/{{INITIATIVE_ID}}')
  %body
    .lyt-root
      .lyt-header
        #hello
        #logo
      = yield
      .lyt-root-footer
    .lyt-footer
      %span#distributed-by
      %a{href: "http://#{Fanforce.base_domain}"} Powered by Fanforce.

  :coffeescript
    FF.css_framework = 'bootstrap3'
    FF(->
      FF.on('visitor.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.visitor.logout(); void(0)">Logout</a></div></div>')
      )
    )

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
fanforce-plugin-factory-2.0.0.rc29 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc28 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc27 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc26 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc25 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc24 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc23 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc22 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc21 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc19 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc18 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc17 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc16 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc15 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc13 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc12 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc11 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc10 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml
fanforce-plugin-factory-2.0.0.rc9 lib/fanforce/plugin_factory/scaffolding/layouts/visitor.haml