Sha256: f8742355873590b7a5be6f60cc696f10e790ce84cbdeed64382a43a7fd84c76d
Contents?: true
Size: 1.13 KB
Versions: 18
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true require "cell/partial" module Decidim module Proposals # This cell renders the collaborative_draft card for an instance of a CollaborativeDraft # the default size is the Medium Card (:m) class CollaborativeDraftCell < Decidim::ViewModel include CollaborativeDraftCellsHelper include Cell::ViewModel::Partial include Messaging::ConversationHelper def show cell card_size, model, @options end private def card_size "decidim/proposals/collaborative_draft_l" end def resource_path resource_locator(model).path end def current_participatory_space model.component.participatory_space 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
18 entries across 18 versions & 1 rubygems