Sha256: b3377ab2224958def0a4e65f2f3f850d0f5066f69298612dd14ce2da066c0832
Contents?: true
Size: 522 Bytes
Versions: 13
Compression:
Stored size: 522 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 case @options[:size] when :s "decidim/initiatives/initiative_s" else "decidim/initiatives/initiative_g" end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems