Add LDAP user index
This commit is contained in:
25
app/views/ldap_users/index.html.erb
Normal file
25
app/views/ldap_users/index.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<h1>LDAP users</h1>
|
||||
|
||||
<ul>
|
||||
<li><%= link_to 'kosmos.org', ldap_users_path %></li>
|
||||
<li><%= link_to '5apps.com', ldap_users_path(ou: '5apps.com') %></li>
|
||||
</ul>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>UID</th>
|
||||
<th>E-Mail</th>
|
||||
<th>Admin</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @entries.each do |entry| %>
|
||||
<tr>
|
||||
<td><%= entry[:uid] %></td>
|
||||
<td><%= entry[:mail] %></td>
|
||||
<td><%= entry[:admin] %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user