To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / auth_sources / index.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (1.35 KB)
| 1 | 0:513646585e45 | Chris | <div class="contextual"> |
|---|---|---|---|
| 2 | <%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %>
|
||
| 3 | </div>
|
||
| 4 | |||
| 5 | <h2><%=l(:label_auth_source_plural)%></h2> |
||
| 6 | |||
| 7 | <table class="list"> |
||
| 8 | <thead><tr> |
||
| 9 | 909:cbb26bc654de | Chris | <th><%=l(:field_name)%></th> |
| 10 | <th><%=l(:field_type)%></th> |
||
| 11 | <th><%=l(:field_host)%></th> |
||
| 12 | <th><%=l(:label_user_plural)%></th> |
||
| 13 | <th></th> |
||
| 14 | 0:513646585e45 | Chris | </tr></thead> |
| 15 | <tbody>
|
||
| 16 | <% for source in @auth_sources %>
|
||
| 17 | 909:cbb26bc654de | Chris | <tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>"> |
| 18 | 507:0c939c159af4 | Chris | <td><%= link_to(h(source.name), :action => 'edit', :id => source)%></td> |
| 19 | <td align="center"><%= h source.auth_method_name %></td> |
||
| 20 | <td align="center"><%= h source.host %></td> |
||
| 21 | <td align="center"><%= h source.users.count %></td> |
||
| 22 | 0:513646585e45 | Chris | <td class="buttons"> |
| 23 | 909:cbb26bc654de | Chris | <%= link_to l(:button_test), :action => 'test_connection', :id => source %>
|
| 24 | <%= link_to l(:button_delete), { :action => 'destroy', :id => source },
|
||
| 25 | :method => :post,
|
||
| 26 | 0:513646585e45 | Chris | :confirm => l(:text_are_you_sure),
|
| 27 | :class => 'icon icon-del',
|
||
| 28 | :disabled => source.users.any? %>
|
||
| 29 | </td>
|
||
| 30 | </tr>
|
||
| 31 | <% end %>
|
||
| 32 | </tbody>
|
||
| 33 | </table>
|
||
| 34 | |||
| 35 | <p class="pagination"><%= pagination_links_full @auth_source_pages %></p> |