Class: Decidim::Initiatives::ApproveMembershipRequestEvent

Inherits:
Events::BaseEvent show all
Includes:
Events::EmailEvent, Events::NotificationEvent
Defined in:
decidim-initiatives/app/events/decidim/initiatives/approve_membership_request_event.rb

Instance Method Summary collapse

Methods inherited from Events::BaseEvent

#initialize, #resource_locator, #resource_path, #resource_text, #resource_title, #resource_url, #safe_resource_text, type

Methods included from TranslatableAttributes

#default_locale?

Constructor Details

This class inherits a constructor from Decidim::Events::BaseEvent

Instance Method Details

#email_introObject


16
17
18
19
20
21
22
23
24
# File 'decidim-initiatives/app/events/decidim/initiatives/approve_membership_request_event.rb', line 16

def email_intro
  I18n.t(
    "decidim.initiatives.events.approve_membership_request.email_intro",
    resource_title: resource_title,
    resource_url: resource_url,
    author_profile_url: author_profile_url,
    author_nickname: author_nickname
  )
end

#email_outroObject


26
27
28
29
30
31
32
# File 'decidim-initiatives/app/events/decidim/initiatives/approve_membership_request_event.rb', line 26

def email_outro
  I18n.t(
    "decidim.initiatives.events.approve_membership_request.email_outro",
    resource_title: resource_title,
    resource_url: resource_url
  )
end

#email_subjectObject


9
10
11
12
13
14
# File 'decidim-initiatives/app/events/decidim/initiatives/approve_membership_request_event.rb', line 9

def email_subject
  I18n.t(
    "decidim.initiatives.events.approve_membership_request.email_subject",
    author_nickname: author_nickname
  )
end

#notification_titleObject


34
35
36
37
38
39
40
41
42
# File 'decidim-initiatives/app/events/decidim/initiatives/approve_membership_request_event.rb', line 34

def notification_title
  I18n.t(
    "decidim.initiatives.events.approve_membership_request.notification_title",
    resource_title: resource_title,
    resource_url: resource_url,
    author_profile_url: author_profile_url,
    author_nickname: author_nickname
  ).html_safe
end