Sha256: 27ebb4103d77ccb8e66df1324b74ddf1f7decb34b12d49243c1b0000ea9d5105

Contents?: true

Size: 1014 Bytes

Versions: 37

Compression:

Stored size: 1014 Bytes

Contents

class FanforcePlugin::Sinatra

  # ADD INITIATIVE UI ############################################################
  def route_add_initiative(params)
    page :add_initiative, :layout => :add_edit_initiative
  end
  get '/add_initiative.html' do route_add_initiative(params) end

  # EDIT INITIATIVE UI ###########################################################
  def route_edit_initiative(params)
    page :edit_initiative, :layout => :add_edit_initiative
  end
  get '/edit_initiative.html' do route_edit_initiative(params) end

  # WIDGET TMPLS #################################################################
  def route_widget_tmpls(params)
    content_type 'application/javascript'
    page :widget_tmpls
  end
  get '/widget_tmpls' do route_widget_tmpls(params) end

  # ENGAGE #######################################################################
  def route_engage(params)
    page :engage, :layout => :engage
  end
  get '/:fanforce_slug/:initiative_slug/engage.html' do route_engage(params) end

end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
fanforce-plugin-factory-0.13.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.12.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.12.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.11.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.10.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.9.7 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.9.6 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.9.5 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.9.4 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.9.3 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.9.2 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.9.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.9.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.8.2 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.8.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.8.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.7.0 lib/fanforce/plugin_factory/routes_behavior.rb