Sha256: e5f579452c851f070798c40311d1cd1cf444582bbc190c61b7ebe9d64311c44c

Contents?: true

Size: 1 KB

Versions: 28

Compression:

Stored size: 1 KB

Contents

# frozen-string_literal: true

module Decidim
  module Meetings
    class MeetingRegistrationsEnabledEvent < Decidim::Events::BaseEvent
      include Decidim::Events::EmailEvent
      include Decidim::Events::NotificationEvent

      def email_subject
        I18n.t(
          "decidim.meetings.events.meeting_registrations_enabled.email_subject",
          resource_title: resource_title
        )
      end

      def email_intro
        I18n.t(
          "decidim.meetings.events.meeting_registrations_enabled.email_intro",
          resource_title: resource_title
        )
      end

      def email_outro
        I18n.t(
          "decidim.meetings.events.meeting_registrations_enabled.email_outro",
          resource_title: resource_title
        )
      end

      def notification_title
        I18n.t(
          "decidim.meetings.events.meeting_registrations_enabled.notification_title",
          resource_title: resource_title,
          resource_path: resource_path
        ).html_safe
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
decidim-meetings-0.8.4 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.8.3 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.8.2 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.8.1 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.8.0 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.7.4 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.7.3 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.7.2 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.7.1 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.7.0 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.6.8 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-0.6.8 decidim-meetings/app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.6.7 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-0.6.7 decidim-meetings/app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.6.6 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-0.6.6 decidim-meetings/app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.6.5 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-0.6.5 decidim-meetings/app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-meetings-0.6.4 app/events/decidim/meetings/meeting_registrations_enabled_event.rb
decidim-0.6.4 decidim-meetings/app/events/decidim/meetings/meeting_registrations_enabled_event.rb