<h1>Listing sources for <%= Organization.find_by_id(params[:organization_id]).name %></h1>

<% if @sources.empty? %>
This organization has no sources yet.

<% else %>

<table>
  <tr>
    <th>Manage</th>
    <th>URL</th>
  </tr>

  <% for source in @sources %>
  <tr class="<%= cycle 'odd', 'even' %>">
    <td>
      <%= link_to 'Show', organization_source_path(params[:organization_id], source) %> | 
      <%= link_to 'Destroy', organization_source_path(params[:organization_id], source), :confirm => 'Are you sure?', :method => :delete %>
    </td>
    <td><%= source_url_link source %></td>
  </tr>
  <% end %>
</table>

<% end %>

<br />

<%= will_paginate @versions %>

<h1>Listing sources for <%= Organization.find_by_id(params[:organization_id]).name %></h1>

<% if @sources.empty? %>
This organization has no sources yet.

<% else %>

<table>
  <tr>
    <th>Manage</th>
    <th>Source Name</th>
    <th>URL</th>
  </tr>

  <% for source in @sources %>
  <tr class="<%= cycle 'odd', 'even' %>">
    <td>
      <%= link_to 'Show', organization_source_path(params[:organization_id], source) %> | 
      <%= link_to 'Destroy', organization_source_path(params[:organization_id], source), :confirm => 'Are you sure?', :method => :delete %>
    </td>
    <td><%= source.name %></td>
    <td><%= source_url_link source %></td>
  </tr>
  <% end %>
</table>

<% end %>

<br />

<%= will_paginate @versions %>

Include source name in source index view
Include source name in source index view
