<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>
<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>