Sha256: 4f9530bd6e211dda396bc86f9f0358c9236dcfef50d19128f40fbcedb441a59a

Contents?: true

Size: 405 Bytes

Versions: 65

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Initiatives
    # This cell renders the process card for an instance of an Initiative
    # the default size is the Medium Card (:m)
    class InitiativeCell < Decidim::ViewModel
      def show
        cell card_size, model, options
      end

      private

      def card_size
        "decidim/initiatives/initiative_m"
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
decidim-initiatives-0.15.0 app/cells/decidim/initiatives/initiative_cell.rb
decidim-initiatives-0.14.4 app/cells/decidim/initiatives/initiative_cell.rb
decidim-initiatives-0.14.3 app/cells/decidim/initiatives/initiative_cell.rb
decidim-initiatives-0.14.2 app/cells/decidim/initiatives/initiative_cell.rb
decidim-initiatives-0.14.1 app/cells/decidim/initiatives/initiative_cell.rb