Sha256: 80b4cf7b6dc3301c014598d81b57a733f1833a0330b8f4bf058240b674026e0a

Contents?: true

Size: 889 Bytes

Versions: 28

Compression:

Stored size: 889 Bytes

Contents

# frozen_string_literal: true

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

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

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

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

      def notification_title
        I18n.t(
          "decidim.meetings.events.update_meeting_event.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.6.3 app/events/decidim/meetings/update_meeting_event.rb
decidim-0.6.3 decidim-meetings/app/events/decidim/meetings/update_meeting_event.rb
decidim-meetings-0.6.2 app/events/decidim/meetings/update_meeting_event.rb
decidim-0.6.2 decidim-meetings/app/events/decidim/meetings/update_meeting_event.rb
decidim-meetings-0.6.1 app/events/decidim/meetings/update_meeting_event.rb
decidim-0.6.1 decidim-meetings/app/events/decidim/meetings/update_meeting_event.rb
decidim-meetings-0.6.0 app/events/decidim/meetings/update_meeting_event.rb
decidim-0.6.0 decidim-meetings/app/events/decidim/meetings/update_meeting_event.rb