Class: Decidim::Budgets::BudgetInformationModalCell
- Inherits:
-
BaseCell
- Object
- ViewModel
- BaseCell
- Decidim::Budgets::BudgetInformationModalCell
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
#can_be_managed?, #main_component_path, #main_component_url, #manage_component_path
Instance Method Details
#component_name ⇒ Object
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_scope ⇒ Object
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
|
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
|