##// END OF EJS Templates
View cleanup....
Jean-Philippe Lang -
r3127:45f3199aa949
parent child
Show More
@@ -1,33 +1,34
1 <div class="contextual">
1 <div class="contextual">
2 <%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %>
2 <%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %>
3 </div>
3 </div>
4
4
5 <h2><%=l(:label_auth_source_plural)%></h2>
5 <h2><%=l(:label_auth_source_plural)%></h2>
6
6
7 <table class="list">
7 <table class="list">
8 <thead><tr>
8 <thead><tr>
9 <th><%=l(:field_name)%></th>
9 <th><%=l(:field_name)%></th>
10 <th><%=l(:field_type)%></th>
10 <th><%=l(:field_type)%></th>
11 <th><%=l(:field_host)%></th>
11 <th><%=l(:field_host)%></th>
12 <th><%=l(:label_user_plural)%></th>
12 <th><%=l(:label_user_plural)%></th>
13 <th></th>
13 <th></th>
14 <th></th>
15 </tr></thead>
14 </tr></thead>
16 <tbody>
15 <tbody>
17 <% for source in @auth_sources %>
16 <% for source in @auth_sources %>
18 <tr class="<%= cycle("odd", "even") %>">
17 <tr class="<%= cycle("odd", "even") %>">
19 <td><%= link_to source.name, :action => 'edit', :id => source%></td>
18 <td><%= link_to source.name, :action => 'edit', :id => source%></td>
20 <td align="center"><%= source.auth_method_name %></td>
19 <td align="center"><%= source.auth_method_name %></td>
21 <td align="center"><%= source.host %></td>
20 <td align="center"><%= source.host %></td>
22 <td align="center"><%= source.users.count %></td>
21 <td align="center"><%= source.users.count %></td>
23 <td align="center"><%= link_to l(:button_test), :action => 'test_connection', :id => source %></td>
22 <td class="buttons">
24 <td align="center"><%= button_to l(:button_delete), { :action => 'destroy', :id => source },
23 <%= link_to l(:button_test), :action => 'test_connection', :id => source %>
24 <%= link_to l(:button_delete), { :action => 'destroy', :id => source },
25 :confirm => l(:text_are_you_sure),
25 :confirm => l(:text_are_you_sure),
26 :class => "button-small",
26 :class => 'icon icon-del',
27 :disabled => source.users.any? %></td>
27 :disabled => source.users.any? %>
28 </td>
28 </tr>
29 </tr>
29 <% end %>
30 <% end %>
30 </tbody>
31 </tbody>
31 </table>
32 </table>
32
33
33 <p class="pagination"><%= pagination_links_full @auth_source_pages %></p>
34 <p class="pagination"><%= pagination_links_full @auth_source_pages %></p>
General Comments 0
You need to be logged in to leave comments. Login now