Sha256: 03f1b8782387077d55a6c41f44c53ffc34a2f29136dca8c773c8fe178266c43e
Contents?: true
Size: 693 Bytes
Versions: 33
Compression:
Stored size: 693 Bytes
Contents
# frozen_string_literal: true module Decidim module Elections # Custom helpers, scoped to the elections engine. # module ApplicationHelper include Decidim::CheckBoxesTreeHelper def state_filter_values TreeNode.new( TreePoint.new("", t("elections.elections.filters.all", scope: "decidim")), [ TreePoint.new("active", t("elections.elections.filters.active", scope: "decidim")), TreePoint.new("upcoming", t("elections.elections.filters.upcoming", scope: "decidim")), TreePoint.new("finished", t("elections.elections.filters.finished", scope: "decidim")) ] ) end end end end
Version data entries
33 entries across 33 versions & 1 rubygems