Sha256: 78a6a8cdabc27078a07864334f3dac95c7e184188355c61750e0a4a3569670dc

Contents?: true

Size: 604 Bytes

Versions: 7

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

require "cell/partial"

module Decidim
  module Accountability
    # This cell renders the List (:l) result card
    # for an instance of a Result
    class ResultLCell < Decidim::CardLCell
      include ApplicationHelper
      include ActiveSupport::NumberHelper

      alias result model

      def component_settings
        controller.try(:component_settings) || result.component.settings
      end

      def render_extra_data?
        true
      end

      private

      def metadata_cell
        "decidim/accountability/result_metadata"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-accountability-0.28.4 app/cells/decidim/accountability/result_l_cell.rb
decidim-accountability-0.28.3 app/cells/decidim/accountability/result_l_cell.rb
decidim-accountability-0.28.2 app/cells/decidim/accountability/result_l_cell.rb
decidim-accountability-0.28.1 app/cells/decidim/accountability/result_l_cell.rb
decidim-accountability-0.28.0 app/cells/decidim/accountability/result_l_cell.rb
decidim-accountability-0.28.0.rc5 app/cells/decidim/accountability/result_l_cell.rb
decidim-accountability-0.28.0.rc4 app/cells/decidim/accountability/result_l_cell.rb