2007-10-14 05:33:00 +00:00
|
|
|
class IntegrationsController < ApplicationController
|
|
|
|
|
2009-08-04 10:27:20 +02:00
|
|
|
skip_before_filter :login_required, :only => [:search_plugin, :google_gadget]
|
2008-12-10 21:30:43 +01:00
|
|
|
|
2007-10-14 05:33:00 +00:00
|
|
|
def index
|
|
|
|
@page_title = 'TRACKS::Integrations'
|
|
|
|
end
|
|
|
|
|
2007-12-05 06:48:24 +00:00
|
|
|
def rest_api
|
|
|
|
@page_title = 'TRACKS::REST API Documentation'
|
|
|
|
end
|
|
|
|
|
2007-10-14 05:33:00 +00:00
|
|
|
def get_quicksilver_applescript
|
|
|
|
context = current_user.contexts.find params[:context_id]
|
|
|
|
render :partial => 'quicksilver_applescript', :locals => { :context => context }
|
|
|
|
end
|
|
|
|
|
|
|
|
def get_applescript1
|
|
|
|
context = current_user.contexts.find params[:context_id]
|
|
|
|
render :partial => 'applescript1', :locals => { :context => context }
|
|
|
|
end
|
|
|
|
|
|
|
|
def get_applescript2
|
|
|
|
context = current_user.contexts.find params[:context_id]
|
|
|
|
render :partial => 'applescript2', :locals => { :context => context }
|
|
|
|
end
|
2008-12-10 21:30:43 +01:00
|
|
|
|
|
|
|
def search_plugin
|
|
|
|
@icon_data = [File.open(RAILS_ROOT + '/public/images/done.png').read].
|
|
|
|
pack('m').gsub(/\n/, '')
|
|
|
|
|
|
|
|
render :layout => false
|
|
|
|
end
|
|
|
|
|
2009-08-04 09:54:45 +02:00
|
|
|
def google_gadget
|
|
|
|
render :layout => false, :content_type => Mime::XML
|
|
|
|
end
|
|
|
|
|
2007-10-14 05:33:00 +00:00
|
|
|
end
|