Class: Decidim::DecidimAwesome::Voting::VotingCardsProposalModalCell

Inherits:
VotingCardsBaseCell
  • Object
show all
Defined in:
app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal_cell.rb

Instance Method Summary collapse

Methods inherited from VotingCardsBaseCell

#component_settings, #current_component, #current_vote, #proposal, #sanitized_title, #user_voted_weight

Instance Method Details

#showObject



9
10
11
# File 'app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal_cell.rb', line 9

def show
  render :show
end

#vote_instructionsObject



13
14
15
16
# File 'app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal_cell.rb', line 13

def vote_instructions
  translated_attribute(current_component.settings.voting_cards_instructions).presence || t("decidim.decidim_awesome.voting.voting_cards.default_instructions_html",
                                                                                           organization: current_organization.name)
end