[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
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue