Sha256: b49f67c80f18b0f85c4aa6bc44a3bbe497d889588b58ea446a84173eac770f56

Contents?: true

Size: 711 Bytes

Versions: 45

Compression:

Stored size: 711 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Budgets
    # Custom helpers, scoped to the budgets engine.
    #
    module ApplicationHelper
      include PaginateHelper
      include Decidim::Comments::CommentsHelper
      include ProjectsHelper
      include Decidim::CheckBoxesTreeHelper

      def filter_status_values
        TreeNode.new(
          TreePoint.new("", t("decidim.budgets.projects.filters.status_values.all")),
          [
            TreePoint.new("selected", t("decidim.budgets.projects.filters.status_values.selected")),
            TreePoint.new("not_selected", t("decidim.budgets.projects.filters.status_values.not_selected"))
          ]
        )
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
decidim-budgets-0.23.3 app/helpers/decidim/budgets/application_helper.rb
decidim-budgets-0.23.2 app/helpers/decidim/budgets/application_helper.rb
decidim-budgets-0.23.1 app/helpers/decidim/budgets/application_helper.rb
decidim-budgets-0.23.1.rc1 app/helpers/decidim/budgets/application_helper.rb
decidim-budgets-0.23.0 app/helpers/decidim/budgets/application_helper.rb