Class: Decidim::Comments::CommentCreatedEvent
- Inherits:
-
Events::BaseEvent
- Object
- Events::BaseEvent
- Decidim::Comments::CommentCreatedEvent
- Includes:
- Events::EmailEvent, Events::NotificationEvent
- Defined in:
- app/events/decidim/comments/comment_created_event.rb
Instance Method Summary collapse
Instance Method Details
#email_intro ⇒ Object
18 19 20 21 22 23 |
# File 'app/events/decidim/comments/comment_created_event.rb', line 18 def email_intro I18n.t( "decidim.comments.events.comment_created.#{comment_type}.email_intro", resource_title: resource_title ).html_safe end |
#email_outro ⇒ Object
25 26 27 28 29 30 |
# File 'app/events/decidim/comments/comment_created_event.rb', line 25 def email_outro I18n.t( "decidim.comments.events.comment_created.#{comment_type}.email_outro", resource_title: resource_title ) end |
#email_subject ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'app/events/decidim/comments/comment_created_event.rb', line 9 def email_subject I18n.t( "decidim.comments.events.comment_created.#{comment_type}.email_subject", resource_title: resource_title, resource_url: resource_locator.url(url_params), author_name: comment..name ) end |
#notification_title ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'app/events/decidim/comments/comment_created_event.rb', line 32 def notification_title I18n.t( "decidim.comments.events.comment_created.#{comment_type}.notification_title", resource_title: resource_title, resource_path: resource_locator.path(url_params), author_name: comment..name ).html_safe end |