Sha256: d13e9da5758a6eea23c3cc04e5576fc37923fb225a7184abc4b4701d2005d28e
Contents?: true
Size: 844 Bytes
Versions: 7
Compression:
Stored size: 844 Bytes
Contents
# frozen_string_literal: true module Decidim module Meetings class CreateMeetingEvent < Decidim::Events::SimpleEvent delegate :organization, to: :user, prefix: false def resource_text translated_attribute(resource.description) end def button_text I18n.t("meeting_created.button_text", scope: "decidim.events.meetings") if resource.can_be_joined_by?(user) end def button_url if resource.can_be_joined_by?(user) if resource.registration_form_enabled? Decidim::EngineRouter.main_proxy(component).join_meeting_registration_url(meeting_id: resource.id, host: organization.host) else Decidim::EngineRouter.main_proxy(component).meeting_url(id: resource.id, host: organization.host) end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems