diff options
author | francis <francis> | 2008-05-12 08:35:24 +0000 |
---|---|---|
committer | francis <francis> | 2008-05-12 08:35:24 +0000 |
commit | f743dbb49a82ccd38a4c24a682c60a1ae1663258 (patch) | |
tree | 5ac98f9cc347f54008a314d1140cdba49e7da191 /app/controllers/request_controller.rb | |
parent | 3caa59078b3f0c2673797690df10aab4249c6ef2 (diff) |
Generalise links to tracking.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 7bf2deba0..a4d8beba6 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: request_controller.rb,v 1.81 2008-05-12 01:53:41 francis Exp $ +# $Id: request_controller.rb,v 1.82 2008-05-12 08:35:24 francis Exp $ class RequestController < ApplicationController @@ -40,9 +40,8 @@ class RequestController < ApplicationController @info_requests_same_user_same_body_more = true end - # Already tracking? + # Track corresponding to this page @track_thing = TrackThing.create_track_for_request(@info_request) - @existing_track = TrackThing.find_by_existing_track(@user, @track_thing.track_query) end def list @@ -52,9 +51,8 @@ class RequestController < ApplicationController @title = "Recently sent Freedom of Information requests" query = "variety:sent"; sortby = "newest" - # Already tracking? - @track_thing = TrackThing.create_track_for_all_new_requests() - @existing_track = TrackThing.find_by_existing_track(@user, @track_thing.track_query) + # Track corresponding to this page + @track_thing = TrackThing.create_track_for_all_new_requests elsif @view == 'successful' @title = "Recent successful responses" query = 'variety:response (status:successful OR status:partially_successful)' |