Sha256: 1f169fff6af848dbe75216d2c6570f24eceb042161419c89e81d6340847fe88b

Contents?: true

Size: 396 Bytes

Versions: 7

Compression:

Stored size: 396 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
      end

      private

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-initiatives-0.13.1 app/cells/decidim/initiatives/initiative_cell.rb
decidim-initiatives-0.12.2 app/cells/decidim/initiatives/initiative_cell.rb
decidim-initiatives-0.13.0 app/cells/decidim/initiatives/initiative_cell.rb
decidim-initiatives-0.12.1 app/cells/decidim/initiatives/initiative_cell.rb
decidim-initiatives-0.13.0.pre1 app/cells/decidim/initiatives/initiative_cell.rb
decidim-initiatives-0.12.0 app/cells/decidim/initiatives/initiative_cell.rb
decidim-initiatives-0.12.0.pre app/cells/decidim/initiatives/initiative_cell.rb