diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-04-27 16:19:21 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-04-27 16:19:21 +0100 |
commit | d030a32a6acf3def64bc35f9fc3cb59db122f3fd (patch) | |
tree | a277d6664a1282c20bc88d984f98342dcd4e63af /app/controllers | |
parent | eefd59e308e2d5e1fb5a211811c41cc5adc0a81d (diff) | |
parent | fc573c98372146e4fc7546c7e65cc4719e74205a (diff) |
Merge branch 'hotfix/0.21.0.23' 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>', |