summaryrefslogtreecommitdiffstats
path: root/app/views/auth_sources
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/auth_sources')
-rw-r--r--app/views/auth_sources/list.rhtml7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/auth_sources/list.rhtml b/app/views/auth_sources/list.rhtml
index 6836e6c67..5729ec77c 100644
--- a/app/views/auth_sources/list.rhtml
+++ b/app/views/auth_sources/list.rhtml
@@ -9,6 +9,7 @@
<th><%=l(:field_name)%></th>
<th><%=l(:field_type)%></th>
<th><%=l(:field_host)%></th>
+ <th><%=l(:label_user_plural)%></th>
<th></th>
<th></th>
</tr></thead>
@@ -18,8 +19,12 @@
<td><%= link_to source.name, :action => 'edit', :id => source%></td>
<td align="center"><%= source.auth_method_name %></td>
<td align="center"><%= source.host %></td>
+ <td align="center"><%= source.users.count %></td>
<td align="center"><%= link_to l(:button_test), :action => 'test_connection', :id => source %></td>
- <td align="center"><%= button_to l(:button_delete), { :action => 'destroy', :id => source }, :confirm => l(:text_are_you_sure), :class => "button-small" %></td>
+ <td align="center"><%= button_to l(:button_delete), { :action => 'destroy', :id => source },
+ :confirm => l(:text_are_you_sure),
+ :class => "button-small",
+ :disabled => source.users.any? %></td>
</tr>
<% end %>
</tbody>