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: One or two lines

Instance Method Summary collapse

Instance Method Details

#showObject



8
9
10
11
12
# File 'app/cells/decidim/budgets/project_votes_count_cell.rb', line 8

def show
  return unless show_votes_count?

   :span, content, class: css_class
end