Sha256: fcb09f97346a3e2d787d7539d70732f3373bd1e55ffecc7cbf73c16a8b7f9393

Contents?: true

Size: 594 Bytes

Versions: 5

Compression:

Stored size: 594 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    # This cell renders the Grid (:g) process card
    # for a given instance of a ParticipatoryProcess
    class ProcessGroupGCell < Decidim::CardGCell
      private

      def resource_path
        Decidim::ParticipatoryProcesses::Engine.routes.url_helpers.participatory_process_group_path(model)
      end

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

      def metadata_cell
        "decidim/participatory_processes/process_group_metadata"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.29.1 app/cells/decidim/participatory_processes/process_group_g_cell.rb
decidim-participatory_processes-0.28.4 app/cells/decidim/participatory_processes/process_group_g_cell.rb
decidim-participatory_processes-0.29.0 app/cells/decidim/participatory_processes/process_group_g_cell.rb
decidim-participatory_processes-0.28.3 app/cells/decidim/participatory_processes/process_group_g_cell.rb
decidim-participatory_processes-0.29.0.rc4 app/cells/decidim/participatory_processes/process_group_g_cell.rb