You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html.erb 1.4KB

1234567891011121314151617181920212223242526272829303132333435
  1. <div class="contextual">
  2. <%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %>
  3. </div>
  4. <h2><%=l(:label_auth_source_plural)%></h2>
  5. <table class="list">
  6. <thead><tr>
  7. <th><%=l(:field_name)%></th>
  8. <th><%=l(:field_type)%></th>
  9. <th><%=l(:field_host)%></th>
  10. <th><%=l(:label_user_plural)%></th>
  11. <th></th>
  12. </tr></thead>
  13. <tbody>
  14. <% for source in @auth_sources %>
  15. <tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>">
  16. <td><%= link_to(h(source.name), :action => 'edit', :id => source)%></td>
  17. <td align="center"><%= h source.auth_method_name %></td>
  18. <td align="center"><%= h source.host %></td>
  19. <td align="center"><%= h source.users.count %></td>
  20. <td class="buttons">
  21. <%= link_to l(:button_test), {:action => 'test_connection', :id => source}, :class => 'icon icon-test' %>
  22. <%= link_to l(:button_delete), { :action => 'destroy', :id => source },
  23. :method => :delete,
  24. :confirm => l(:text_are_you_sure),
  25. :class => 'icon icon-del',
  26. :disabled => source.users.any? %>
  27. </td>
  28. </tr>
  29. <% end %>
  30. </tbody>
  31. </table>
  32. <p class="pagination"><%= pagination_links_full @auth_source_pages %></p>