diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-30 11:18:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-30 11:18:22 +0000 |
commit | fce4615f10ad81b9070e65a45f9d37b1c571ccd7 (patch) | |
tree | b922752605cd207cf51e72866f435af8427ea468 /app/controllers/account_controller.rb | |
parent | b5fcea9e7414647533ee333485ed8c93b9cff82f (diff) | |
download | redmine-fce4615f10ad81b9070e65a45f9d37b1c571ccd7.tar.gz redmine-fce4615f10ad81b9070e65a45f9d37b1c571ccd7.zip |
Display latest user's activity on account/show view.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2066 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/account_controller.rb')
-rw-r--r-- | app/controllers/account_controller.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index 4b2ec8317..f327dd5b6 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -1,5 +1,5 @@ -# redMine - project management software -# Copyright (C) 2006-2007 Jean-Philippe Lang +# Redmine - project management software +# Copyright (C) 2006-2008 Jean-Philippe Lang # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -31,6 +31,10 @@ class AccountController < ApplicationController @memberships = @user.memberships.select do |membership| membership.project.is_public? || (User.current.member_of?(membership.project)) end + + events = Redmine::Activity::Fetcher.new(User.current, :author => @user).events(nil, nil, :limit => 10) + @events_by_day = events.group_by(&:event_date) + rescue ActiveRecord::RecordNotFound render_404 end |