Sha256: f7429d4f408fdd84ce42793fe4bc79dae07fb4e62fa11cb111e2a46112b7697b

Contents?: true

Size: 501 Bytes

Versions: 13

Compression:

Stored size: 501 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    class MeetingRegistrationNotificationEvent < Decidim::Events::BaseEvent
      include Decidim::Events::NotificationEvent

      def notification_title
        I18n.t("notification_title", **i18n_options).html_safe
      end

      def i18n_options
        {
          resource_title:,
          resource_url:,
          scope: event_name,
          registration_code: extra["registration_code"]
        }
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-meetings-0.29.1 app/events/decidim/meetings/meeting_registration_notification_event.rb
decidim-meetings-0.28.4 app/events/decidim/meetings/meeting_registration_notification_event.rb
decidim-meetings-0.29.0 app/events/decidim/meetings/meeting_registration_notification_event.rb
decidim-meetings-0.28.3 app/events/decidim/meetings/meeting_registration_notification_event.rb
decidim-meetings-0.29.0.rc4 app/events/decidim/meetings/meeting_registration_notification_event.rb
decidim-meetings-0.29.0.rc3 app/events/decidim/meetings/meeting_registration_notification_event.rb
decidim-meetings-0.29.0.rc2 app/events/decidim/meetings/meeting_registration_notification_event.rb
decidim-meetings-0.29.0.rc1 app/events/decidim/meetings/meeting_registration_notification_event.rb
decidim-meetings-0.28.2 app/events/decidim/meetings/meeting_registration_notification_event.rb
decidim-meetings-0.28.1 app/events/decidim/meetings/meeting_registration_notification_event.rb
decidim-meetings-0.28.0 app/events/decidim/meetings/meeting_registration_notification_event.rb
decidim-meetings-0.28.0.rc5 app/events/decidim/meetings/meeting_registration_notification_event.rb
decidim-meetings-0.28.0.rc4 app/events/decidim/meetings/meeting_registration_notification_event.rb