Sha256: 871510dc4d08fd23774ffb15c3d1668a1256f6d28b4aca5e7e2c355c411cf154

Contents?: true

Size: 1.97 KB

Versions: 3

Compression:

Stored size: 1.97 KB

Contents

<% content_for :secondary_nav do %>
  <div class="secondary-nav">
    <div class="secondary-nav__title">
      <%= t ".title" %>
    </div>
    <ul>
      <% if can? :index, Decidim::User %>
        <li <% if is_active_link?(decidim_admin.users_path) %> class="is-active" <% end %>>
          <%= link_to t("menu.admins", scope: "decidim.admin"), decidim_admin.users_path %>
        </li>
      <% end %>
      <% if can? :index, Decidim::UserGroup %>
        <li <% if is_active_link?(decidim_admin.user_groups_path) %> class="is-active" <% end %>>
          <%= link_to t("menu.user_groups", scope: "decidim.admin"), decidim_admin.user_groups_path %>
        </li>
      <% end %>
      <% if can? :index, :officializations %>
        <li <% if is_active_link?(decidim_admin.officializations_path) %> class="is-active" <% end %>>
          <%= link_to t("menu.officializations", scope: "decidim.admin"), decidim_admin.officializations_path %>
        </li>
      <% end %>
      <% if can? :index, :impersonatable_users %>
        <li <% if is_active_link?(decidim_admin.impersonatable_users_path) %> class="is-active" <% end %>>
          <%= link_to t("menu.impersonations", scope: "decidim.admin"), decidim_admin.impersonatable_users_path %>
        </li>
      <% end %>
      <li <% if is_active_link?(decidim_admin.authorization_workflows_path) %> class="is-active" <% end %>>
        <%= link_to t("menu.authorization_workflows", scope: "decidim.admin"), decidim_admin.authorization_workflows_path %>
        <ul>
          <% Decidim::Verifications.admin_workflows.each do |manifest| %>
            <% workflow = Decidim::Verifications::Adapter.new(manifest) %>

            <li <% if is_active_link?(workflow.admin_root_path) %> class="is-active" <% end %>>
              <%= link_to workflow.fullname, workflow.admin_root_path %>
            </li>
          <% end %>
        </ul>
      </li>
    </ul>
  </div>
<% end %>

<%= render "layouts/decidim/admin/application" do %>
  <%= yield %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

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