Sha256: 83fe51488a1505635aa662ef9c27ede943976f661308178c8c5260647ef8372e

Contents?: true

Size: 531 Bytes

Versions: 5

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    # This cell renders the Grid (:g) conference card
    # for a given instance of a Conference
    class ConferenceGCell < Decidim::CardGCell
      private

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

      def resource_image_url
        model.attached_uploader(:hero_image).url
      end

      def metadata_cell
        "decidim/conferences/conference_metadata"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-conferences-0.29.1 app/cells/decidim/conferences/conference_g_cell.rb
decidim-conferences-0.28.4 app/cells/decidim/conferences/conference_g_cell.rb
decidim-conferences-0.29.0 app/cells/decidim/conferences/conference_g_cell.rb
decidim-conferences-0.28.3 app/cells/decidim/conferences/conference_g_cell.rb
decidim-conferences-0.29.0.rc4 app/cells/decidim/conferences/conference_g_cell.rb