Sha256: af74beae0ef29a11b958d7d32d0b8bc3b54eceab2ab7d1fd3fc96fa8e5e76b4f

Contents?: true

Size: 612 Bytes

Versions: 25

Compression:

Stored size: 612 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Votings
    module VotingsHelper
      include Decidim::CheckBoxesTreeHelper

      def filter_states_values
        TreeNode.new(
          TreePoint.new("", t("votings.filters.all", scope: "decidim.votings")),
          [
            TreePoint.new("active", t("votings.filters.active", scope: "decidim.votings")),
            TreePoint.new("upcoming", t("votings.filters.upcoming", scope: "decidim.votings")),
            TreePoint.new("finished", t("votings.filters.finished", scope: "decidim.votings"))
          ]
        )
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-elections-0.26.10 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.26.9 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.26.8 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.26.7 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.26.5 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.26.4 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.26.3 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.26.2 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.26.1 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.26.0 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.26.0.rc2 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.26.0.rc1 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.25.2 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.25.1 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.25.0 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.25.0.rc4 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.25.0.rc3 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.25.0.rc2 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.25.0.rc1 app/helpers/decidim/votings/votings_helper.rb
decidim-elections-0.24.3 app/helpers/decidim/votings/votings_helper.rb