diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-04-27 16:29:01 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-27 16:29:01 +0100 |
commit | d1e666da6fde288bebaea9ade9a6978bcc796ece (patch) | |
tree | a2f73cf044249274c1968bccdca97a3a7534a997 /app/controllers | |
parent | 6b6742ab635b223eeb570204ab0482840987b8ec (diff) | |
parent | d030a32a6acf3def64bc35f9fc3cb59db122f3fd (diff) |
Merge branch 'rails-3-develop' of ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/request_game_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/request_game_controller.rb b/app/controllers/request_game_controller.rb index 298818bc7..7eadc1204 100644 --- a/app/controllers/request_game_controller.rb +++ b/app/controllers/request_game_controller.rb @@ -13,7 +13,8 @@ class RequestGameController < ApplicationController @total = InfoRequest.count @done = @total - @missing @percentage = (@done.to_f / @total.to_f * 10000).round / 100.0 - @requests = InfoRequest.get_random_old_unclassified(3, :conditions => ["prominence = 'normal'"]) + @requests = InfoRequest.includes(:public_body, :user).get_random_old_unclassified(3, :conditions => ["prominence = 'normal'"]) + if @missing == 0 flash[:notice] = _('<p>All done! Thank you very much for your help.</p><p>There are <a href="{{helpus_url}}">more things you can do</a> to help {{site_name}}.</p>', |