Class: Decidim::WelcomeNotificationEvent
Instance Method Summary
collapse
empty_translatable, ensure_translatable, multi_translation, translated_in_current_locale?
#default_locale?
#event_has_roles?, i18n_attributes, #i18n_options, #i18n_scope, #participatory_space_url, #resource_text, #resource_url
#current_organization_name, #organization_colors, #organization_description_label, #organization_name
#can_be_managed?, #main_component_path, #main_component_url, #manage_component_path
#action_cell, #action_data, #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
14
15
16
|
# File 'app/events/decidim/welcome_notification_event.rb', line 14
def body
interpolate(organization.welcome_notification_body.symbolize_keys[I18n.locale])
end
|
#email_greeting ⇒ Object
22
|
# File 'app/events/decidim/welcome_notification_event.rb', line 22
def email_greeting; end
|
#email_intro ⇒ Object
24
25
26
|
# File 'app/events/decidim/welcome_notification_event.rb', line 24
def email_intro
body
end
|
#email_outro ⇒ Object
28
|
# File 'app/events/decidim/welcome_notification_event.rb', line 28
def email_outro; end
|
#email_subject ⇒ Object
18
19
20
|
# File 'app/events/decidim/welcome_notification_event.rb', line 18
def email_subject
subject
end
|
#notification_title ⇒ Object
30
31
32
|
# File 'app/events/decidim/welcome_notification_event.rb', line 30
def notification_title
("<p><strong>#{subject}</strong></p>" + body).html_safe
end
|
#resource_path ⇒ Object
34
35
36
|
# File 'app/events/decidim/welcome_notification_event.rb', line 34
def resource_path
nil
end
|
#resource_title ⇒ Object
38
39
40
|
# File 'app/events/decidim/welcome_notification_event.rb', line 38
def resource_title
nil
end
|
#subject ⇒ Object
10
11
12
|
# File 'app/events/decidim/welcome_notification_event.rb', line 10
def subject
interpolate(organization.welcome_notification_subject.symbolize_keys[I18n.locale])
end
|