diff options
author | Jody McIntyre <scjody@modernduck.com> | 2014-07-12 18:00:13 -0400 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-23 15:25:12 +0100 |
commit | 40d4310735204c1d005ce210a757877b63573206 (patch) | |
tree | 0ec3c7382cb734e6b598f23a4061feeec24b5d9b /app/controllers/request_controller.rb | |
parent | 836c681b42825b5b5fe310ee2f5c3475a767aea9 (diff) |
Add widget for info requests
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] |