[refs #123] Add activity feed en translation fixes

This commit is contained in:
konstantin.grabar 2012-01-27 18:59:28 +04:00
parent 72fd821bc8
commit e01fe571b4
2 changed files with 9 additions and 2 deletions

View File

@ -1,10 +1,14 @@
class ActivityFeedObserver < ActiveRecord::Observer class ActivityFeedObserver < ActiveRecord::Observer
observe :issue, :comment observe :issue, :comment, :user
def after_create(record) def after_create(record)
case record.class.to_s case record.class.to_s
when 'User' when 'User'
ActivityFeed.create(:user => record, :kind => 'new_user_notification', :date => {:user_name => record.name, :user_email => record.email, :password => user.password}) ActivityFeed.create(
:user => record,
:kind => 'new_user_notification',
:date => {:user_name => record.name, :user_email => record.email, :password => user.password}
)
when 'Issue' when 'Issue'
recipients = record.collect_recipient_ids recipients = record.collect_recipient_ids

View File

@ -46,6 +46,9 @@ en:
edit_header: Notifier setting edit_header: Notifier setting
processing: working ... processing: working ...
activity_feed:
header: Activity Feed
downloads: downloads:
title: Downloads statistic title: Downloads statistic
message: Automatically updated every 5 minutes message: Automatically updated every 5 minutes