Sha256: 453d634d0f34f0a83d3965111d71dfc48d13f0c3e22b4bee87ead69798e56569

Contents?: true

Size: 1.3 KB

Versions: 19

Compression:

Stored size: 1.3 KB

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

  # ADD PENDING INITIATIVE UI ############################################################
  def route_convert_pending_initiative(params)
    page :convert_pending_initiative, :layout => :convert_pending_initiative
  end
  get '/convert_pending_initiative.html' do route_convert_pending_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 '/:organization_slug/:initiative_slug/engage.html' do route_engage(params) end

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
fanforce-plugin-factory-0.41.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.40.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.39.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.39.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.38.2 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.38.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.38.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.37.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.37.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.36.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.35.2 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.35.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.35.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.34.2 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.34.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.34.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.33.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.32.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.32.0 lib/fanforce/plugin_factory/routes_behavior.rb