2006-12-16 15:15:31 +03:00
|
|
|
<div class="contextual">
|
2007-01-08 22:21:59 +03:00
|
|
|
<%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %>
|
2006-12-16 15:15:31 +03:00
|
|
|
</div>
|
|
|
|
|
2013-07-28 15:50:18 +04:00
|
|
|
<%= title l(:label_auth_source_plural) %>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
2006-12-24 19:35:25 +03:00
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
2011-09-18 03:10:36 +04:00
|
|
|
<th><%=l(:field_name)%></th>
|
|
|
|
<th><%=l(:field_type)%></th>
|
|
|
|
<th><%=l(:field_host)%></th>
|
|
|
|
<th><%=l(:label_user_plural)%></th>
|
|
|
|
<th></th>
|
2006-12-24 19:35:25 +03:00
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
2006-07-29 13:32:58 +04:00
|
|
|
<% for source in @auth_sources %>
|
2011-11-25 22:13:31 +04:00
|
|
|
<tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>">
|
2013-11-12 01:01:21 +04:00
|
|
|
<td class="name"><%= link_to(h(source.name), :action => 'edit', :id => source)%></td>
|
|
|
|
<td><%= h source.auth_method_name %></td>
|
|
|
|
<td><%= h source.host %></td>
|
|
|
|
<td><%= h source.users.count %></td>
|
2009-12-25 20:39:06 +03:00
|
|
|
<td class="buttons">
|
2012-12-13 19:04:11 +04:00
|
|
|
<%= link_to l(:button_test), try_connection_auth_source_path(source), :class => 'icon icon-test' %>
|
2012-07-07 18:36:49 +04:00
|
|
|
<%= delete_link auth_source_path(source) %>
|
2009-12-25 20:39:06 +03:00
|
|
|
</td>
|
2006-12-24 19:35:25 +03:00
|
|
|
</tr>
|
2006-07-29 13:32:58 +04:00
|
|
|
<% end %>
|
2006-12-24 19:35:25 +03:00
|
|
|
</tbody>
|
2006-07-29 13:32:58 +04:00
|
|
|
</table>
|
|
|
|
|
2007-12-29 14:36:30 +03:00
|
|
|
<p class="pagination"><%= pagination_links_full @auth_source_pages %></p>
|