diff --git a/app/views/auth_sources/list.rhtml b/app/views/auth_sources/list.rhtml index 6836e6c6..5729ec77 100644 --- a/app/views/auth_sources/list.rhtml +++ b/app/views/auth_sources/list.rhtml @@ -9,6 +9,7 @@ <%=l(:field_name)%> <%=l(:field_type)%> <%=l(:field_host)%> + <%=l(:label_user_plural)%> @@ -18,8 +19,12 @@ <%= link_to source.name, :action => 'edit', :id => source%> <%= source.auth_method_name %> <%= source.host %> + <%= source.users.count %> <%= link_to l(:button_test), :action => 'test_connection', :id => source %> - <%= button_to l(:button_delete), { :action => 'destroy', :id => source }, :confirm => l(:text_are_you_sure), :class => "button-small" %> + <%= button_to l(:button_delete), { :action => 'destroy', :id => source }, + :confirm => l(:text_are_you_sure), + :class => "button-small", + :disabled => source.users.any? %> <% end %>