Sha256: 6482fae75c50ac6b772f49531dff017f42ba2edd713245da8a82c3d693c35d4a
Contents?: true
Size: 1.23 KB
Versions: 28
Compression:
Stored size: 1.23 KB
Contents
# frozen-string_literal: true module Decidim module Meetings class MeetingRegistrationsOverPercentageEvent < Decidim::Events::BaseEvent include Decidim::Events::EmailEvent include Decidim::Events::NotificationEvent def email_subject I18n.t( "decidim.meetings.events.meeting_registrations_over_percentage.email_subject", resource_title: resource_title, percentage: extra["percentage"] * 100 ) end def email_intro I18n.t( "decidim.meetings.events.meeting_registrations_over_percentage.email_intro", resource_title: resource_title, percentage: extra["percentage"] * 100 ) end def email_outro I18n.t( "decidim.meetings.events.meeting_registrations_over_percentage.email_outro", resource_title: resource_title, percentage: extra["percentage"] * 100 ) end def notification_title I18n.t( "decidim.meetings.events.meeting_registrations_over_percentage.notification_title", resource_title: resource_title, resource_path: resource_path, percentage: extra["percentage"] * 100 ).html_safe end end end end
Version data entries
28 entries across 28 versions & 2 rubygems