Class: Decidim::Proposals::HighlightedProposalsForComponentCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::Proposals::HighlightedProposalsForComponentCell
- Includes:
- ComponentPathHelper
- Defined in:
- decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component_cell.rb
Overview
This cell renders the highlighted proposals 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 ComponentPathHelper
#can_be_managed?, #main_component_path, #main_component_url, #manage_component_path
Instance Method Details
#show ⇒ Object
13 14 15 |
# File 'decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component_cell.rb', line 13 def show render unless proposals_count.zero? end |