Sha256: 9950d9f88330c2d51d247a4488d87e099e28b8354f566746fae911f49399f5dd
Contents?: true
Size: 923 Bytes
Versions: 9
Compression:
Stored size: 923 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # Custom helpers, scoped to the admin panel. # module ApplicationHelper include Decidim::LocalizedLocalesHelper include Decidim::TranslationsHelper include Decidim::HumanizeBooleansHelper include Decidim::AriaSelectedLinkToHelper include Decidim::MetaTagsHelper include Decidim::MapHelper include Decidim::Admin::LogRenderHelper include Decidim::Admin::UserRolesHelper include Decidim::Admin::ResourceScopeHelper include Decidim::Admin::SearchFormHelper def participatory_space_active_link?(component) endpoints = component.manifest.admin_engine.try(:participatory_space_endpoints) endpoints && is_active_link?(decidim_admin_participatory_processes.components_path(current_participatory_space), %r{/\d+/manage/(#{endpoints.join("|")})\b}) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems