Class: Decidim::Accountability::StatusCell
- Inherits:
 - 
      ViewModel
      
        
- Object
 - ViewModel
 - Decidim::Accountability::StatusCell
 
 
- Includes:
 - ActionView::Helpers::NumberHelper, ApplicationHelper, BreadcrumbHelper
 
- Defined in:
 - app/cells/decidim/accountability/status_cell.rb
 
Overview
This cell renders the status of a category
Instance Method Summary collapse
Methods included from BreadcrumbHelper
#categories_hierarchy, #category, #current_scope, #parent_categories, #progress_calculator
Methods included from ApplicationHelper
#apply_accountability_pack_tags, #component_name, #display_percentage, #filter_items_for
Instance Method Details
#has_results? ⇒ Boolean
      23 24 25  | 
    
      # File 'app/cells/decidim/accountability/status_cell.rb', line 23 def has_results? results_count&.positive? || progress.present? end  | 
  
#render? ⇒ Boolean
      19 20 21  | 
    
      # File 'app/cells/decidim/accountability/status_cell.rb', line 19 def render? [:render_blank] || has_results? end  | 
  
#show ⇒ Object
      13 14 15 16 17  | 
    
      # File 'app/cells/decidim/accountability/status_cell.rb', line 13 def show return unless render? render end  |