Sha256: cbb0f3a73a6d672e8b9537f9b3eb28bba2225f42a995ed725353a4bcf25c28ea

Contents?: true

Size: 785 Bytes

Versions: 47

Compression:

Stored size: 785 Bytes

Contents

<%
  components = participatory_space.components.published.or(Decidim::Component.where(id: self.try(:current_component)))
%>

<%=
  extended_navigation_bar([
    {
      name: t(".process_menu_item"),
      url: decidim_participatory_processes.participatory_process_path(participatory_space),
      active: is_active_link?(decidim_participatory_processes.participatory_process_path(participatory_space), :exclusive) ||
              is_active_link?(decidim_participatory_processes.all_metrics_participatory_process_path(participatory_space), :exclusive)
    }
  ] + components.map do |component|
    {
      name: translated_attribute(component.name),
      url: main_component_path(component),
      active: is_active_link?(main_component_path(component), :inclusive)
    }
  end)
%>

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.23.3 app/views/layouts/decidim/_process_navigation.html.erb
decidim-participatory_processes-0.23.2 app/views/layouts/decidim/_process_navigation.html.erb
decidim-participatory_processes-0.23.1 app/views/layouts/decidim/_process_navigation.html.erb
decidim-participatory_processes-0.23.1.rc1 app/views/layouts/decidim/_process_navigation.html.erb
decidim-participatory_processes-0.23.0 app/views/layouts/decidim/_process_navigation.html.erb
decidim-participatory_processes-0.22.0 app/views/layouts/decidim/_process_navigation.html.erb
decidim-participatory_processes-0.21.0 app/views/layouts/decidim/_process_navigation.html.erb