Class: Decidim::Proposals::ProposalVotesCountCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::Proposals::ProposalVotesCountCell
- Includes:
- Cell::ViewModel::Partial, ProposalVotesHelper
- Defined in:
- app/cells/decidim/proposals/proposal_votes_count_cell.rb
Overview
Renders the votes count (progress bar or participatory texts variant) for a given proposal
Instance Method Summary collapse
Methods included from ProposalVotesHelper
#can_accumulate_votes_beyond_threshold?, #current_user_can_vote?, #minimum_votes_per_user_enabled?, #proposal_voted_by_user?, #remaining_minimum_votes_count_for_user, #remaining_votes_count_for_user, #threshold_per_proposal, #threshold_per_proposal_enabled?, #vote_limit_enabled?, #votes_blocked?, #votes_enabled?
Instance Method Details
#show ⇒ Object
13 14 15 16 17 |
# File 'app/cells/decidim/proposals/proposal_votes_count_cell.rb', line 13 def show return unless can_see_votes? render end |