Sha256: 9cd5ad74a638a0d8ad5d78e51ec946d0565106783af9aafb421f43f24ae190e8

Contents?: true

Size: 1.98 KB

Versions: 14

Compression:

Stored size: 1.98 KB

Contents

<% content_for :secondary_nav do %>
  <div class="secondary-nav">
    <div class="secondary-nav__title">
      <%= t ".title" %>
    </div>
    <ul>
      <% if allowed_to? :read, :admin_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 allowed_to? :index, :user_group %>
        <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 allowed_to? :index, :officialization %>
        <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 allowed_to? :index, :impersonatable_user %>
        <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

14 entries across 14 versions & 1 rubygems

Version Path
decidim-admin-0.15.2 app/views/layouts/decidim/admin/users.html.erb
decidim-admin-0.15.1 app/views/layouts/decidim/admin/users.html.erb
decidim-admin-0.15.0 app/views/layouts/decidim/admin/users.html.erb
decidim-admin-0.14.4 app/views/layouts/decidim/admin/users.html.erb
decidim-admin-0.14.3 app/views/layouts/decidim/admin/users.html.erb
decidim-admin-0.14.2 app/views/layouts/decidim/admin/users.html.erb
decidim-admin-0.14.1 app/views/layouts/decidim/admin/users.html.erb
decidim-admin-0.13.1 app/views/layouts/decidim/admin/users.html.erb
decidim-admin-0.12.2 app/views/layouts/decidim/admin/users.html.erb
decidim-admin-0.13.0 app/views/layouts/decidim/admin/users.html.erb
decidim-admin-0.12.1 app/views/layouts/decidim/admin/users.html.erb
decidim-admin-0.13.0.pre1 app/views/layouts/decidim/admin/users.html.erb
decidim-admin-0.12.0 app/views/layouts/decidim/admin/users.html.erb
decidim-admin-0.12.0.pre app/views/layouts/decidim/admin/users.html.erb