Sha256: 5e7a1f9a7857cd28e96d23d3a528a0cbb9459c0a22bb10b93d21e0974e851724
Contents?: true
Size: 763 Bytes
Versions: 4
Compression:
Stored size: 763 Bytes
Contents
# frozen_string_literal: true module Decidim module Assemblies # Helpers related to the Assemblies filter by type. module FilterAssembliesHelper def available_filters %w(all government executive consultative_advisory participatory working_group commission others) end def filter_link(filter) link_to t(filter, scope: "decidim.assemblies.filter"), url_for(params.to_unsafe_h.merge(page: nil, filter: filter)), data: { filter: filter }, remote: true end def help_text t("help", scope: "decidim.assemblies.filter") end def filter params[:filter] || "all" end def current_filter_text t(filter, scope: "decidim.assemblies.filter") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems