app/helpers/decidim/admin/application_helper.rb in decidim-admin-0.23.6 vs app/helpers/decidim/admin/application_helper.rb in decidim-admin-0.24.0.rc1
- old
+ new
@@ -13,14 +13,10 @@
include Decidim::MapHelper
include Decidim::Admin::LogRenderHelper
include Decidim::Admin::UserRolesHelper
include Decidim::Admin::ResourceScopeHelper
- def title
- current_organization.name
- end
-
# Adds a link to the secondary navigation so admins can easily access the public page of the
# element their working on.
#
# url - The String with the URL to link to.
#
@@ -29,9 +25,14 @@
content_tag(:li) do
link_to url, class: "button", style: "color: #fff", target: "_blank", rel: "noopener" do
I18n.t("decidim.admin.view_public_page")
end
end
+ end
+
+ 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