Class: Decidim::Accountability::HighlightedResultsForComponentCell

Inherits:
ViewModel
  • Object
show all
Includes:
ActiveSupport::NumberHelper, Cell::ViewModel::Partial, ApplicationHelper, ComponentPathHelper, LayoutHelper
Defined in:
app/cells/decidim/accountability/highlighted_results_for_component_cell.rb

Overview

This cell renders the highlighted results for a given component. It is intended to be used in the ‘participatory_space_highlighted_elements` view hook.

Instance Method Summary collapse

Methods included from ApplicationHelper

#active_class_if_current, #categories_label, #display_count, #display_percentage, #heading_leaf_level_results, #heading_parent_level_results, #subcategories_label

Instance Method Details

#showObject



17
18
19
# File 'app/cells/decidim/accountability/highlighted_results_for_component_cell.rb', line 17

def show
  render unless results_count.zero?
end