Remove multi-domain support on admin user pages
All checks were successful
continuous-integration/drone/push Build is passing

refs #166
This commit is contained in:
2024-02-10 08:54:28 +01:00
parent fcda3b9c8c
commit 8747ce4eb0
4 changed files with 12 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
<%= render HeaderComponent.new(title: "Users: #{@ou}") %>
<%= render HeaderComponent.new(title: "Users") %>
<%= render MainSimpleComponent.new do %>
<section>
@@ -16,19 +16,6 @@
<% end %>
</section>
<% if @orgs.length > 1 %>
<section>
<h3 class="hidden">Domains</h3>
<ul>
<% @orgs.each do |org| %>
<li class="inline-block">
<%= link_to org[:ou], admin_users_path(ou: org[:ou]), class: "ks-text-link" %>
</li>
<% end %>
</ul>
</section>
<% end %>
<section>
<table class="divided mb-8">
<thead>
@@ -36,13 +23,12 @@
<th>UID</th>
<th>Status</th>
<th>Roles</th>
<!-- <th>Password</th> -->
</tr>
</thead>
<tbody>
<% @users.each do |user| %>
<tr>
<td><%= link_to(user.cn, admin_user_path(user.address), class: 'ks-text-link') %></td>
<td><%= link_to(user.cn, admin_user_path(user.cn), class: 'ks-text-link') %></td>
<td><%= user.confirmed_at.nil? ? badge("pending", :yellow) : "" %></td>
<td><%= user.is_admin? ? badge("admin", :red) : "" %></td>
</tr>

View File

@@ -1,4 +1,4 @@
<%= render HeaderComponent.new(title: "User: #{@user.address}") %>
<%= render HeaderComponent.new(title: "User: #{@user.cn}") %>
<%= render MainSimpleComponent.new do %>
<div class="mb-12 sm:flex sm:flex-row sm:gap-x-8">