Sha256: a68de61cca787e159f4efc60cafc6501781160deb4a8d250fa2959e2165c8503

Contents?: true

Size: 821 Bytes

Versions: 14

Compression:

Stored size: 821 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.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

14 entries across 14 versions & 1 rubygems

Version Path
decidim-conferences-0.24.3 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.23.6 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.24.2 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.23.5 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.24.1 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.24.0 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.24.0.rc2 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.23.4 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.24.0.rc1 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.23.3 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.23.2 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.23.1 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.23.1.rc1 app/cells/decidim/conferences/conference_m_cell.rb
decidim-conferences-0.23.0 app/cells/decidim/conferences/conference_m_cell.rb