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