Sha256: b0e2fff2cf38c173f1912d9804f136f57702b6d85da1f5d8f3f69de92e524113
Contents?: true
Size: 845 Bytes
Versions: 12
Compression:
Stored size: 845 Bytes
Contents
# frozen-string_literal: true module Decidim module Conferences class ConferenceRoleAssignedEvent < Decidim::Events::SimpleEvent include Decidim::Events::NotificationEvent include Decidim::Events::AuthorEvent def notification_title I18n.t("notification_title", **i18n_options).html_safe end def i18n_role I18n.t(extra["role"], scope: "decidim.admin.models.conference_user_role.roles", default: extra["role"]) end def i18n_options { resource_path: resource_path, resource_title: resource_title, resource_url: resource_url, scope: event_name, participatory_space_title: participatory_space_title, participatory_space_url: participatory_space_url, role: i18n_role } end end end end
Version data entries
12 entries across 12 versions & 1 rubygems