aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/general_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-03-27 16:27:07 +0000
committerLouise Crow <louise.crow@gmail.com>2015-03-27 16:27:07 +0000
commitf43bb580cf8047783bda7dd7db63381fe3189519 (patch)
treeff4d61d18036938b279de185d9b50c5ee773296d /app/controllers/general_controller.rb
parent96a2a89e20e04a3fee75ff6e042f301f738bd864 (diff)
parentb6afb0020ba36b4fde68c4d6b1e9ae98b0a01463 (diff)
Merge branch 'issues/2218-filtering-links' of ssh://git.mysociety.org/data/git/public/alaveteli into release/0.21
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r--app/controllers/general_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb
index 438bbfd3f..380da285e 100644
--- a/app/controllers/general_controller.rb
+++ b/app/controllers/general_controller.rb
@@ -15,6 +15,11 @@ class GeneralController < ApplicationController
def frontpage
medium_cache
@locale = self.locale_from_params()
+ successful_query = InfoRequestEvent.make_query_from_params( :latest_status => ['successful'] )
+ @track_thing = TrackThing.create_track_for_search_query(successful_query)
+ @feed_autodetect = [ { :url => do_track_url(@track_thing, 'feed'),
+ :title => _('Successful requests'),
+ :has_json => true } ]
end
# Display blog entries