Sha256: e550be23cb940c2361d4832b6b7d864f212963e6ebc19f419fd0baeb0acea7b9

Contents?: true

Size: 655 Bytes

Versions: 20

Compression:

Stored size: 655 Bytes

Contents

<div class="row column consultations-nav">
  <%
    components = question.components.published.or(Decidim::Component.where(id: self.try(:current_component)))
  %>

  <%=
    extended_navigation_bar([
      {
        name: t(".question_menu_item"),
        url: decidim_consultations.question_path(question),
        active: is_active_link?(decidim_consultations.question_path(question), :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)
  %>
</div>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
decidim-consultations-0.27.9 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.27.8 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.27.7 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.27.6 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.26.10 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.26.9 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.27.5 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.26.8 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.27.4 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.27.3 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.26.7 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.26.5 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.27.2 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.27.1 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.26.4 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.27.0 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.26.3 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.27.0.rc2 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.27.0.rc1 app/views/layouts/decidim/_question_components.html.erb
decidim-consultations-0.26.2 app/views/layouts/decidim/_question_components.html.erb