akkounts/app/views/admin/ldap_users/index.html.erb
Sebastian Kippe db9118cb7c
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Improve admin LDAP user index
* Show which domain the current list is for
* Render text links as such
2021-11-28 11:11:41 -06:00

33 lines
734 B
Plaintext

<h2>LDAP users: <%= @ou %></h2>
<h3 class="hidden">Domains</h3>
<ul class="mb-10">
<li class="inline-block">
<%= link_to 'kosmos.org', admin_ldap_users_path, class: "ks-text-link" %>
</li>
<li class="inline-block ml-6">
<%= link_to '5apps.com', admin_ldap_users_path(ou: '5apps.com'), class: "ks-text-link" %>
</li>
</ul>
<table>
<thead>
<tr>
<th>UID</th>
<th>E-Mail</th>
<th>Admin</th>
<!-- <th>Password</th> -->
</tr>
</thead>
<tbody>
<% @entries.each do |entry| %>
<tr>
<td><%= entry[:uid] %></td>
<td><%= entry[:mail] %></td>
<td><%= entry[:admin] %></td>
<!-- <td><%= entry[:password] %></td> -->
</tr>
<% end %>
</tbody>
</table>