Class: Decidim::Initiatives::InitiativeMetadataGCell

Inherits:
CardMetadataCell
  • Object
show all
Includes:
Cell::ViewModel::Partial, InitiativeHelper
Defined in:
app/cells/decidim/initiatives/initiative_metadata_g_cell.rb

Overview

This cell renders the assembly metadata for g card

Instance Method Summary collapse

Methods included from InitiativeHelper

#authorized_create_modal_button, #authorized_vote_modal_button, #can_edit_custom_signature_end_date?, #hero_background_path, #humanize_admin_state, #metadata_badge_css_class, #render_committee_tooltip

Constructor Details

#initializeInitiativeMetadataGCell

Returns a new instance of InitiativeMetadataGCell.



13
14
15
16
17
# File 'app/cells/decidim/initiatives/initiative_metadata_g_cell.rb', line 13

def initialize(*)
  super

  @items.prepend(*initiative_items)
end