2011-10-14 21:45:58 +01:00
|
|
|
= surround '[', ']' do
|
2012-02-07 09:31:07 +00:00
|
|
|
= I18n.t "event_log.controllers.#{el.controller.underscore}", :default => el.controller
|
2011-10-14 21:45:58 +01:00
|
|
|
= I18n.t "event_log.actions.#{el.controller.underscore}.#{el.action}", :default => :"event_log.actions.#{el.action}"
|
|
|
|
- if el.object_id.present? and el.object_type.present?
|
|
|
|
= I18n.t "activerecord.models.#{el.object_type.underscore}"
|
|
|
|
= el.object_name
|
|
|
|
= "(id##{el.object_id})" # link_to "id##{el.object_id}", el.object
|
2012-02-07 09:31:07 +00:00
|
|
|
= el.message
|