Sha256: 71bd17465a0702e078d5080de46ebc18febd98739f78b35118499973c17eeb64

Contents?: true

Size: 538 Bytes

Versions: 13

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    class ProcessStepCell < Decidim::ViewModel
      include ParticipatoryProcessHelper
      include Decidim::ModalHelper

      delegate :steps, :active_step, to: :model

      def show
        return if steps.blank?

        render
      end

      private

      def display_steps?
        [true, "true"].include? options[:display_steps]
      end

      def data
        return unless display_steps?

        { is_open: true }
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.29.1 app/cells/decidim/participatory_processes/process_step_cell.rb
decidim-participatory_processes-0.28.4 app/cells/decidim/participatory_processes/process_step_cell.rb
decidim-participatory_processes-0.29.0 app/cells/decidim/participatory_processes/process_step_cell.rb
decidim-participatory_processes-0.28.3 app/cells/decidim/participatory_processes/process_step_cell.rb
decidim-participatory_processes-0.29.0.rc4 app/cells/decidim/participatory_processes/process_step_cell.rb
decidim-participatory_processes-0.29.0.rc3 app/cells/decidim/participatory_processes/process_step_cell.rb
decidim-participatory_processes-0.29.0.rc2 app/cells/decidim/participatory_processes/process_step_cell.rb
decidim-participatory_processes-0.29.0.rc1 app/cells/decidim/participatory_processes/process_step_cell.rb
decidim-participatory_processes-0.28.2 app/cells/decidim/participatory_processes/process_step_cell.rb
decidim-participatory_processes-0.28.1 app/cells/decidim/participatory_processes/process_step_cell.rb
decidim-participatory_processes-0.28.0 app/cells/decidim/participatory_processes/process_step_cell.rb
decidim-participatory_processes-0.28.0.rc5 app/cells/decidim/participatory_processes/process_step_cell.rb
decidim-participatory_processes-0.28.0.rc4 app/cells/decidim/participatory_processes/process_step_cell.rb