Sha256: b2d71dc3e98894a5944c822fdf71114340f587c9335c15fd10d36dc6a492cdb3
Contents?: true
Size: 583 Bytes
Versions: 8
Compression:
Stored size: 583 Bytes
Contents
# frozen_string_literal: true module Decidim module Elections # This cell renders the election card for an instance of an election # the default size is the Search Card (:s) class ElectionCell < Decidim::ViewModel include ElectionCellsHelper include Cell::ViewModel::Partial def show cell card_size, model, options end private def card_size case @options[:size] when :s "decidim/elections/election_s" else "decidim/elections/election_g" end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems