Class: Decidim::Budgets::BaseCell

Inherits:
ViewModel
  • Object
show all
Includes:
ComponentPathHelper, LayoutHelper, SanitizeHelper
Defined in:
decidim-budgets/app/cells/decidim/budgets/base_cell.rb

Overview

This cell has the commons for the budgets cells

Instance Method Summary collapse

Methods included from ComponentPathHelper

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

Instance Method Details


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

def budgets_link_list(budgets)
  budgets.map { |budget| link_to(translated_attribute(budget.title), resource_locator(budget).path) }
         .to_sentence
         .html_safe
end