Sha256: 1a6fdfb4a3e0977b69e73a14711b6ede2c52c6f83ce3dddd248a9421d18a980d

Contents?: true

Size: 1.22 KB

Versions: 3

Compression:

Stored size: 1.22 KB

Contents

<% content_for :secondary_nav do %>
  <div class="secondary-nav secondary-nav--subnav">
    <ul>
      <% if can? :update, current_consultation %>
        <li <% if is_active_link?(decidim_admin_consultations.edit_consultation_path(current_consultation)) %> class="is-active" <% end %>>
          <%= aria_selected_link_to t("info", scope: "decidim.admin.menu.consultations_submenu"),
                                    decidim_admin_consultations.edit_consultation_path(current_consultation) %>
        </li>
      <% end %>

      <% if can?(:index, Decidim::Consultations::Question) %>
        <li <% if is_active_link?(decidim_admin_consultations.consultation_questions_path(current_consultation)) %> class="is-active" <% end %>>
          <%= aria_selected_link_to t("questions", scope: "decidim.admin.menu.consultations_submenu"),
                                    decidim_admin_consultations.consultation_questions_path(current_consultation) %>
        </li>
      <% end %>
    </ul>
  </div>
<% end %>

<%= render "layouts/decidim/admin/application" do %>
  <div class="process-title">
    <div class="process-title-content">
      <%= translated_attribute(current_consultation.title) %>
    </div>
  </div>
  <%= yield %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-consultations-0.11.2 app/views/layouts/decidim/admin/consultation.html.erb
decidim-consultations-0.11.1 app/views/layouts/decidim/admin/consultation.html.erb
decidim-consultations-0.11.0.pre1 app/views/layouts/decidim/admin/consultation.html.erb