Sha256: 852cc0fef09c812a2c63c1733c9f731a647c9edd34d2f3f38c90b4744dae288b

Contents?: true

Size: 416 Bytes

Versions: 74

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # Helpers related to icons
  module CardHelper
    # Public: Returns a card given an instance of a Component.
    #
    # model - The component instance to generate the card for.
    # options - a Hash with options, for the size of the card
    #
    # Returns an HTML.
    def card_for(model, options = {})
      cell "decidim/card", model, options
    end
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/helpers/decidim/card_helper.rb
decidim-core-0.28.4 app/helpers/decidim/card_helper.rb
decidim-core-0.27.9 app/helpers/decidim/card_helper.rb
decidim-core-0.29.0 app/helpers/decidim/card_helper.rb
decidim-core-0.28.3 app/helpers/decidim/card_helper.rb
decidim-core-0.27.8 app/helpers/decidim/card_helper.rb
decidim-core-0.29.0.rc4 app/helpers/decidim/card_helper.rb
decidim-core-0.29.0.rc3 app/helpers/decidim/card_helper.rb
decidim-core-0.29.0.rc2 app/helpers/decidim/card_helper.rb
decidim-core-0.29.0.rc1 app/helpers/decidim/card_helper.rb
decidim-core-0.28.2 app/helpers/decidim/card_helper.rb
decidim-core-0.27.7 app/helpers/decidim/card_helper.rb
decidim-core-0.28.1 app/helpers/decidim/card_helper.rb
decidim-core-0.27.6 app/helpers/decidim/card_helper.rb
decidim-core-0.26.10 app/helpers/decidim/card_helper.rb
decidim-core-0.26.9 app/helpers/decidim/card_helper.rb
decidim-core-0.28.0 app/helpers/decidim/card_helper.rb
decidim-core-0.27.5 app/helpers/decidim/card_helper.rb
decidim-core-0.28.0.rc5 app/helpers/decidim/card_helper.rb
decidim-core-0.28.0.rc4 app/helpers/decidim/card_helper.rb