diff options
author | francis <francis> | 2008-09-21 23:53:50 +0000 |
---|---|---|
committer | francis <francis> | 2008-09-21 23:53:50 +0000 |
commit | bc2598e95f8af078c630226250759e558013472a (patch) | |
tree | 171009d668564fed7e66b53eb7fba97fc48de4b4 /app/controllers/user_controller.rb | |
parent | 93b96516fdcac8f0f2884631e1475e1784ec1327 (diff) |
Flash at top of user page when logged in telling you what requests you
haven't described yet.
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r-- | app/controllers/user_controller.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index a50a21bca..e69b47c29 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_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: user_controller.rb,v 1.59 2008-09-14 01:47:47 francis Exp $ +# $Id: user_controller.rb,v 1.60 2008-09-21 23:53:50 francis Exp $ class UserController < ApplicationController # Show page about a user @@ -43,6 +43,11 @@ class UserController < ApplicationController @track_things = TrackThing.find(:all, :conditions => ["tracking_user_id = ? and track_medium = ?", @display_user.id, 'email_daily'], :order => 'created_at desc') @track_things_grouped = @track_things.group_by(&:track_type_description) end + + # Requests you need to describe + if @is_you + @undescribed_requests = @display_user.get_undescribed_requests + end end # Login form |