[refs #123] Add activity feed en translation fixes
This commit is contained in:
parent
72fd821bc8
commit
e01fe571b4
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue