Sha256: 076f4d971ad50103904a6d2d6cbf7350a2b093e2e0ba71ed2518d02126c1c412
Contents?: true
Size: 759 Bytes
Versions: 15
Compression:
Stored size: 759 Bytes
Contents
# frozen_string_literal: true module Decidim module Conferences # This cell renders the Medium (:m) conference card # for an given instance of an Conference class ConferenceMCell < Decidim::CardMCell include Decidim::ViewHooksHelper # Needed for the view hooks def current_participatory_space model end private def has_image? true end def resource_path Decidim::Conferences::Engine.routes.url_helpers.conference_path(model) end def resource_image_path model.hero_image.url end def statuses [:creation_date, :follow] end def resource_icon icon "conferences", class: "icon--big" end end end end
Version data entries
15 entries across 15 versions & 1 rubygems