Class: Decidim::WelcomeNotificationEvent
Instance Method Summary
collapse
empty_translatable, ensure_translatable, multi_translation, translated_in_current_locale?
#default_locale?
#content_in_same_language?, #hidden_resource?, #initialize, #organization, #perform_translation?, #resource_locator, #resource_text, #resource_url, #safe_resource_text, #safe_resource_translated_text, #translation_missing?, type
#decidim_escape_translated, #decidim_html_escape, #decidim_sanitize, #decidim_sanitize_admin, #decidim_sanitize_editor, #decidim_sanitize_editor_admin, #decidim_sanitize_newsletter, #decidim_sanitize_translated, #decidim_url_escape, included
Instance Method Details
#body ⇒ Object
16
17
18
|
# File 'app/events/decidim/welcome_notification_event.rb', line 16
def body
interpolate(organization.welcome_notification_body.symbolize_keys[I18n.locale])
end
|
#email_greeting ⇒ Object
24
|
# File 'app/events/decidim/welcome_notification_event.rb', line 24
def email_greeting; end
|
#email_intro ⇒ Object
26
27
28
|
# File 'app/events/decidim/welcome_notification_event.rb', line 26
def email_intro
body
end
|
#email_outro ⇒ Object
30
|
# File 'app/events/decidim/welcome_notification_event.rb', line 30
def email_outro; end
|
#email_subject ⇒ Object
20
21
22
|
# File 'app/events/decidim/welcome_notification_event.rb', line 20
def email_subject
subject
end
|
#notification_title ⇒ Object
32
33
34
|
# File 'app/events/decidim/welcome_notification_event.rb', line 32
def notification_title
("<p><strong>#{subject}</strong></p>" + body).html_safe
end
|
#resource_path ⇒ Object
36
37
38
|
# File 'app/events/decidim/welcome_notification_event.rb', line 36
def resource_path
nil
end
|
#resource_title ⇒ Object
40
41
42
|
# File 'app/events/decidim/welcome_notification_event.rb', line 40
def resource_title
nil
end
|
#subject ⇒ Object
12
13
14
|
# File 'app/events/decidim/welcome_notification_event.rb', line 12
def subject
interpolate(organization.welcome_notification_subject.symbolize_keys[I18n.locale])
end
|