<!DOCTYPE html>
<html>
<head>
  <title>Store</title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>
<body>
  <%= render 'navbar' %>
<div class="container">


<p id="notice"><%= notice %></p>

<p>

  <% @database.each do |db| %>
  <strong>Name:</strong> 
  <%= db.name %>
  &nbsp;&nbsp;
  <strong>Database Type:</strong> 
  <%= db.db_type %>

  <% end %>
</p>

<%= paginate @test %>

<table>
  <thead>
    <tr>
      <th>S3 url</th>
      <th colspan="6"></th>
    </tr>
  </thead>
  <tbody>
    <% @test.each do |snapshot| %>
      <tr>
        <td><%= link_to "#{snapshot.database_name}-#{snapshot.collection_timestamp}" , snapshot_path(:id => snapshot.id, :s3_url => snapshot.s3_url, :database_type => snapshot.database_type, :database_name => snapshot.database_name) %></td>
      </tr>
    <% end %>
  </tbody>
</table>


<!-- <table>
  <thead>
    <tr>
      <th>S3 url</th>
      <th colspan="6"></th>
    </tr>
  </thead>
  <tbody>
    <% @snapshots.reverse.each do |snapshot| %>
      <tr>
        <td><%= link_to "#{snapshot.database_name}-#{snapshot.collection_timestamp}" , snapshot_path(:id => snapshot.id, :s3_url => snapshot.s3_url, :database_type => snapshot.database_type, :database_name => snapshot.database_name) %></td>
      </tr>
    <% end %>
  </tbody>
</table> -->

<%= paginate @test %>
&nbsp;
<%= page_entries_info @test %>


<%= link_to 'Back', databases_path %>
</div>
</body>
</html>


