Class: Decidim::Budgets::BudgetInformationModalCell

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

Overview

This cell renders the Budgets component “More information” modal dialog

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

#component_nameObject



13
14
15
# File 'decidim-budgets/app/cells/decidim/budgets/budget_information_modal_cell.rb', line 13

def component_name
  translated_attribute(current_component.name)
end

#i18n_scopeObject



17
18
19
# File 'decidim-budgets/app/cells/decidim/budgets/budget_information_modal_cell.rb', line 17

def i18n_scope
  "decidim.budgets.budget_information_modal"
end

#more_informationObject



9
10
11
# File 'decidim-budgets/app/cells/decidim/budgets/budget_information_modal_cell.rb', line 9

def more_information
  translated_attribute(current_settings.more_information_modal).presence || translated_attribute(settings.more_information_modal)
end