Module: Decidim::Admin::ApplicationHelper
- Includes:
- LogRenderHelper, ResourceScopeHelper, SearchFormHelper, UserRolesHelper, Decidim::AriaSelectedLinkToHelper, HumanizeBooleansHelper, LocalizedLocalesHelper, MapHelper, MetaTagsHelper, TranslationsHelper
- Defined in:
- app/helpers/decidim/admin/application_helper.rb
Overview
Custom helpers, scoped to the admin panel.
Instance Method Summary collapse
Methods included from SearchFormHelper
Methods included from ResourceScopeHelper
#td_resource_scope_for, #th_resource_scope_label, #th_scope_sort_link
Methods included from UserRolesHelper
Methods included from LogRenderHelper
Instance Method Details
#participatory_space_active_link?(component) ⇒ Boolean
19 20 21 22 |
# File 'app/helpers/decidim/admin/application_helper.rb', line 19 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 |