Class: Decidim::DecidimAwesome::Voting::VotingCardsModalCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::DecidimAwesome::Voting::VotingCardsModalCell
- Defined in:
- app/cells/decidim/decidim_awesome/voting/voting_cards_modal_cell.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
7 8 9 10 11 |
# File 'app/cells/decidim/decidim_awesome/voting/voting_cards_modal_cell.rb', line 7 def show return if current_component&.settings&.voting_cards_show_modal_help == false render end |
#vote_instructions ⇒ Object
13 14 15 16 17 18 |
# File 'app/cells/decidim/decidim_awesome/voting/voting_cards_modal_cell.rb', line 13 def vote_instructions instructions = translated_attribute(current_component.settings.voting_cards_instructions).presence || t("decidim.decidim_awesome.voting.voting_cards.default_instructions_html", organization: translated_attribute(current_organization.name)) format(instructions, organization: translated_attribute(current_organization.name)) end |