Class: Decidim::Budgets::LimitAnnouncementCell

Inherits:
BaseCell
  • Object
show all
Defined in:
decidim-budgets/app/cells/decidim/budgets/limit_announcement_cell.rb

Overview

This cell renders information when current user can’t create more budgets orders.

Instance Method Summary collapse

Methods inherited from BaseCell

#budgets_link_list

Methods included from ComponentPathHelper

#can_be_managed?, #main_component_path, #main_component_url, #manage_component_path

Instance Method Details

#showObject



11
12
13
# File 'decidim-budgets/app/cells/decidim/budgets/limit_announcement_cell.rb', line 11

def show
  cell("decidim/announcement", announcement_message, callout_class: "warning") if announce?
end