Sha256: 4d4558f238ce4dc0832ed8644b80cc2ce831bce2c2aba3b2572eae3a8257089b
Contents?: true
Size: 719 Bytes
Versions: 8
Compression:
Stored size: 719 Bytes
Contents
# frozen_string_literal: true module Decidim module Budgets # This cell has the commons for the budgets cells class BaseCell < Decidim::ViewModel include Decidim::LayoutHelper include Decidim::SanitizeHelper include Decidim::ComponentPathHelper include Decidim::Budgets::Engine.routes.url_helpers delegate :current_user, :current_settings, :current_component, :current_workflow, to: :controller delegate :settings, to: :current_component def budgets_link_list(budgets) budgets.map { |budget| link_to(decidim_escape_translated(budget.title), resource_locator(budget).path) } .to_sentence .html_safe end end end end
Version data entries
8 entries across 8 versions & 1 rubygems