Class: Decidim::Proposals::ProposalCell

Inherits:
ViewModel
  • Object
show all
Includes:
Cell::ViewModel::Partial, Messaging::ConversationHelper, ProposalCellsHelper
Defined in:
decidim-proposals/app/cells/decidim/proposals/proposal_cell.rb

Overview

This cell renders the proposal card for an instance of a Proposal the default size is the Medium Card (:m)

Instance Method Summary collapse

Methods included from Messaging::ConversationHelper

#conversation_between, #conversation_between_multiple, #conversation_label_for, #conversation_name_for, #current_or_new_conversation_path_with, #current_or_new_conversation_path_with_multiple, #link_to_current_or_new_conversation_with, #text_link_to_current_or_new_conversation_with, #username_list

Methods included from ProposalCellsHelper

#badge_name, #component_settings, #current_settings, #from_context, #has_actions?, #has_footer?, #index_action?, #proposals_controller?, #state_classes

Methods included from CardHelper

#card_for

Methods included from TranslatableAttributes

#default_locale?

Methods included from TranslationsHelper

empty_translatable, ensure_translatable, multi_translation, translated_in_current_locale?

Instance Method Details

#showObject



14
15
16
# File 'decidim-proposals/app/cells/decidim/proposals/proposal_cell.rb', line 14

def show
  cell card_size, model, options
end