Sha256: edef6f129434ec5efd89a2e99e9e50e35362eebd27ed694f5c2888c4a235c26e
Contents?: true
Size: 1.5 KB
Versions: 8
Compression:
Stored size: 1.5 KB
Contents
# frozen_string_literal: true module Decidim module Meetings # Custom helpers, scoped to the meetings engine. # module ApplicationHelper include PaginateHelper include Decidim::MapHelper include Decidim::Meetings::MapHelper include Decidim::Meetings::MeetingsHelper include Decidim::Comments::CommentsHelper include Decidim::SanitizeHelper include Decidim::CheckBoxesTreeHelper def filter_origin_values origin_values = [] origin_values << TreePoint.new("official", t("decidim.meetings.meetings.filters.origin_values.official")) origin_values << TreePoint.new("citizens", t("decidim.meetings.meetings.filters.origin_values.citizens")) # todo # if component_settings enabled enabled origin_values << TreePoint.new("user_group", t("decidim.meetings.meetings.filters.origin_values.user_groups")) # todo # if current_organization.user_groups_enabled? and component_settings enabled enabled TreeNode.new( TreePoint.new("", t("decidim.meetings.meetings.filters.origin_values.all")), origin_values ) end def filter_date_values TreeNode.new( TreePoint.new("", t("decidim.meetings.meetings.filters.date_values.all")), [ TreePoint.new("upcoming", t("decidim.meetings.meetings.filters.date_values.upcoming")), TreePoint.new("past", t("decidim.meetings.meetings.filters.date_values.past")) ] ) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems