Class: Decidim::ParticipatoryProcesses::RedesignedProcessCell
- Inherits:
-
RedesignedCardCell
- Object
- ViewModel
- RedesignedCardCell
- Decidim::ParticipatoryProcesses::RedesignedProcessCell
- Defined in:
- decidim-participatory_processes/app/cells/decidim/participatory_processes/redesigned_process_cell.rb
Overview
This cell renders the process card for an instance of a Process the default size is the Medium Card (:m)
Constant Summary
Constants inherited from RedesignedCardCell
RedesignedCardCell::ICONS_MAPPING
Constants included from IconHelper
IconHelper::DEFAULT_RESOURCE_TYPE_ICONS
Instance Method Summary collapse
Methods inherited from RedesignedCardCell
Methods included from IconHelper
#component_icon, #manifest_icon, #resource_icon, #resource_type_icon, #resource_type_icon_key
Methods included from RedesignHelper
#data_modal_open_key, #data_modal_remote_key, #modal_open_key, #modal_remote_key, #redesigned_cell_name
Instance Method Details
#metadata ⇒ Object
8 9 10 |
# File 'decidim-participatory_processes/app/cells/decidim/participatory_processes/redesigned_process_cell.rb', line 8 def [{ icon: icon_name(:published_at), value: published_at }] + super end |
#stats ⇒ Object
12 13 14 |
# File 'decidim-participatory_processes/app/cells/decidim/participatory_processes/redesigned_process_cell.rb', line 12 def stats @stats ||= ParticipatoryProcessStatsPresenter.new(participatory_process: model).card_collection end |