Class: Decidim::Budgets::ProjectVotesCountCell

Inherits:
ViewModel
  • Object
show all
Defined in:
app/cells/decidim/budgets/project_votes_count_cell.rb

Overview

This cell renders the vote count. Two possible layouts:

  • with the count label (“0 votes”, “1 vote”, “999 votes”)

  • without the count label (“0”, “1”, “999”)

Instance Method Summary collapse

Instance Method Details

#showObject



12
13
14
15
16
# File 'app/cells/decidim/budgets/project_votes_count_cell.rb', line 12

def show
  return unless show_votes_count?

  content
end