Class: Decidim::Budgets::ProjectVotesCountCell

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

Overview

This cell renders the vote count. Two possible layouts: One or two lines

Constant Summary

Constants included from IconHelper

IconHelper::DEFAULT_RESOURCE_TYPE_ICONS

Instance Method Summary collapse

Methods included from IconHelper

#component_icon, #manifest_icon, #resource_icon, #resource_type_icon, #resource_type_icon_key

Instance Method Details

#showObject



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

def show
  return unless show_votes_count?

   :span, content, class: css_class
end