<div class="contextual">
  <%= link_to l(:label_organization_new), new_organization_path, :class => 'icon icon-add' %>
</div>

<h3>
  <%=l(:label_organization_list)%>
</h3>

<div class="autoscroll">
  <table class="list" style="width: 100%;table-layout: fixed">
    <thead>
        <tr>
          <th>
            <%=l(:label_organization)%>
          </th>
          <th>
            <%=l(:field_created_on)%>
          </th>
          <th></th>
        </tr>
    </thead>
    <tbody>
    <% @organizations.each do |org|%>
        <tr class="<%= cycle("odd", "even") %>">
          <td style="text-align:center;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=org.name%>'>
            <span>
              <%= link_to org.name,home_path(:organization => org.id) %>
            </span>
          </td>
          <td align="center">
            <%= format_date(org.created_at) %>
          </td>
          <td class="buttons">
            <%= link_to(l(:button_change), edit_organization_path(org.id), :class => 'icon icon-copy') %>
            <%= link_to(l(:button_delete),  organization_path(org.id), :method => :delete,:confirm => l(:text_are_you_sure), :class => 'icon icon-del') %>
          </td>
        </tr>
    <% end%>
    </tbody>
  </table>
</div>

<% html_title(l(:label_project_plural)) -%>
