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

Version Path
decidim-conferences-0.22.0 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.21.0 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.20.1 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.20.0 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.19.1 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.18.1 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.19.0 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.17.2 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.18.0 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.17.1 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.16.1 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.17.0 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.16.0 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.15.2 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.15.1 app/cells/decidim/conferences/conference_m_cell.rb