Sha256: cd3c8ac322a0492401ccfbb47b6172df5335b56ea1a410f7467eb981f8e16e12

Contents?: true

Size: 842 Bytes

Versions: 27

Compression:

Stored size: 842 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 title
        decidim_html_escape(super)
      end

      def has_image?
        true
      end

      def resource_path
        Decidim::Conferences::Engine.routes.url_helpers.conference_path(model)
      end

      def resource_image_path
        model.attached_uploader(:hero_image).path
      end

      def statuses
        [:creation_date, :follow]
      end

      def resource_icon
        icon "conferences", class: "icon--big"
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
decidim-conferences-0.26.10 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.26.9 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.27.5 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.26.8 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.27.4 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.27.3 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.26.7 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.26.5 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.27.2 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.27.1 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.26.4 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.27.0 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.26.3 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.27.0.rc2 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.27.0.rc1 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.26.2 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.26.1 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.26.0 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.26.0.rc2 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.26.0.rc1 app/cells/decidim/conferences/conference_m_cell.rb