Sha256: 9f6f9732f851c36f4083021f6eacebc1d72e49af46f3ca6dc98190a260d699a0
Contents?: true
Size: 1.34 KB
Versions: 7
Compression:
Stored size: 1.34 KB
Contents
# frozen_string_literal: true module Decidim module Meetings # This cell renders the meeting card for an instance of a Meeting # the default size is the Medium Card (:m) # also available the List Item Card (:list_item) class MeetingCell < Decidim::ViewModel include MeetingCellsHelper include Cell::ViewModel::Partial def show cell card_size, model end private def card_size case @options[:size] when :list_item "decidim/meetings/meeting_list_item" else "decidim/meetings/meeting_m" end end def resource_icon icon "meetings", remove_icon_class: true, width: 40, height: 70 end def current_component model.component end def current_participatory_space model.component.participatory_space end def component_settings model.component.settings end def component_name translated_attribute current_component.name end def component_type_name model.class.model_name.human end def participatory_space_name translated_attribute current_participatory_space.title end def participatory_space_type_name translated_attribute current_participatory_space.model_name.human end end end end
Version data entries
7 entries across 7 versions & 1 rubygems