aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
authorJody McIntyre <scjody@modernduck.com>2014-07-12 18:00:13 -0400
committerLouise Crow <louise.crow@gmail.com>2014-11-17 18:18:58 +0000
commit56000b053c25274fc0fe84383f4fae1298399da0 (patch)
tree5d6b0bfcb0923ac0ea740cb4ee2b22b2188e09f8 /app/controllers/request_controller.rb
parent210881d90c213229be18869e290e0550a7a310ff (diff)
Add widget for info requests
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r--app/controllers/request_controller.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 3fa0ef0ce..a70b3847d 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -164,6 +164,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]