diff options
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index e847cae1e..a1576beb7 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -161,6 +161,20 @@ class RequestController < ApplicationController @show_no_more_than = (@matches_estimated > MAX_RESULTS) ? MAX_RESULTS : @matches_estimated end + def widget + medium_cache + @info_request = InfoRequest.find(params[:id]) + @track_thing = TrackThing.create_track_for_request(@info_request) + @status = @info_request.calculate_status + render :template => 'request/widget', :layout => false + end + + def create_widget + long_cache + @info_request = InfoRequest.find(params[:id]) + render :template => 'request/create_widget' + end + def list medium_cache @view = params[:view] |