<h1>Listing shares</h1>

<table>
  <tr>
    <th>Access token</th>
    <th>Comment</th>
    <th>Url</th>
    <th>Title</th>
    <th>Share type</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @shares.each do |share| %>
  <tr>
    <td><%= share.access_token %></td>
    <td><%= share.comment %></td>
    <td><%= share.url %></td>
    <td><%= share.title %></td>
    <td><%= share.share_type %></td>
    <td><%= link_to 'Show', share %></td>
    <td><%= link_to 'Edit', edit_share_path(share) %></td>
    <td><%= link_to 'Destroy', share, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Share', new_share_path %>
