Class: Decidim::Initiatives::CreateInitiativeEvent
Instance Method Summary
collapse
#content_in_same_language?, #initialize, #organization, #perform_translation?, #resource_locator, #resource_path, #resource_text, #resource_title, #resource_url, #safe_resource_text, #safe_resource_translated_text, #translation_missing?, type
#default_locale?
Instance Method Details
#email_intro ⇒ Object
18
19
20
21
22
23
24
25
|
# File 'decidim-initiatives/app/events/decidim/initiatives/create_initiative_event.rb', line 18
def email_intro
I18n.t(
"decidim.initiatives.events.create_initiative_event.email_intro",
resource_title:,
author_nickname: author.nickname,
author_name: author.name
)
end
|
#email_outro ⇒ Object
27
28
29
30
31
32
33
34
|
# File 'decidim-initiatives/app/events/decidim/initiatives/create_initiative_event.rb', line 27
def email_outro
I18n.t(
"decidim.initiatives.events.create_initiative_event.email_outro",
resource_title:,
author_nickname: author.nickname,
author_name: author.name
)
end
|
#email_subject ⇒ Object
9
10
11
12
13
14
15
16
|
# File 'decidim-initiatives/app/events/decidim/initiatives/create_initiative_event.rb', line 9
def email_subject
I18n.t(
"decidim.initiatives.events.create_initiative_event.email_subject",
resource_title:,
author_nickname: author.nickname,
author_name: author.name
)
end
|
#notification_title ⇒ Object
36
37
38
39
40
41
42
43
44
45
|
# File 'decidim-initiatives/app/events/decidim/initiatives/create_initiative_event.rb', line 36
def notification_title
I18n.t(
"decidim.initiatives.events.create_initiative_event.notification_title",
resource_title:,
resource_path:,
author_nickname: author.nickname,
author_name: author.name,
author_path: author.profile_path
).html_safe
end
|