Sha256: 666146b7b0b38c439793de1982ca01fd6fa8fb1546256d7f4f8af47576875774

Contents?: true

Size: 596 Bytes

Versions: 8

Compression:

Stored size: 596 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_path
        model.attached_uploader(:hero_image).path
      end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.29.0.rc3 app/cells/decidim/participatory_processes/process_group_g_cell.rb
decidim-participatory_processes-0.29.0.rc2 app/cells/decidim/participatory_processes/process_group_g_cell.rb
decidim-participatory_processes-0.29.0.rc1 app/cells/decidim/participatory_processes/process_group_g_cell.rb
decidim-participatory_processes-0.28.2 app/cells/decidim/participatory_processes/process_group_g_cell.rb
decidim-participatory_processes-0.28.1 app/cells/decidim/participatory_processes/process_group_g_cell.rb
decidim-participatory_processes-0.28.0 app/cells/decidim/participatory_processes/process_group_g_cell.rb
decidim-participatory_processes-0.28.0.rc5 app/cells/decidim/participatory_processes/process_group_g_cell.rb
decidim-participatory_processes-0.28.0.rc4 app/cells/decidim/participatory_processes/process_group_g_cell.rb