view .svn/pristine/c2/c2155d1a90b73a86baf62c217f9d15ae922ab7b2.svn-base @ 985:acaa61dde68b bug_522

Allow file attachment to wrap to avoid extra-wide text field
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 26 Oct 2012 17:18:52 +0100
parents cbb26bc654de
children
line wrap: on
line source
<div class="contextual">
<%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %>
</div>

<h2><%=l(:label_auth_source_plural)%></h2>

<table class="list">
  <thead><tr>
    <th><%=l(:field_name)%></th>
    <th><%=l(:field_type)%></th>
    <th><%=l(:field_host)%></th>
    <th><%=l(:label_user_plural)%></th>
    <th></th>
  </tr></thead>
  <tbody>
<% for source in @auth_sources %>
  <tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>">
    <td><%= link_to(h(source.name), :action => 'edit', :id => source)%></td>
    <td align="center"><%= h source.auth_method_name %></td>
    <td align="center"><%= h source.host %></td>
    <td align="center"><%= h source.users.count %></td>
    <td class="buttons">
      <%= link_to l(:button_test), :action => 'test_connection', :id => source %>
      <%= link_to l(:button_delete), { :action => 'destroy', :id => source },
                                                        :method => :post,
                                                        :confirm => l(:text_are_you_sure),
                                                        :class => 'icon icon-del',
                                                        :disabled => source.users.any? %>
    </td>
  </tr>
<% end %>
  </tbody>
</table>

<p class="pagination"><%= pagination_links_full @auth_source_pages %></p>