[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
observe :issue, :comment
observe :issue, :comment, :user
def after_create(record)
case record.class.to_s
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'
recipients = record.collect_recipient_ids

View File

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