{% extends "layout.html" %}
{% block submenu %}
<ul>
  <li><a href="/my/collections">&#8592; Go back</a>
  <li class="create-button"><a href="/my/collections/{{collection.uuid}}/private_link/new">Create new private link</a>
</ul>
{% endblock %}
{% block body %}
<h1>Private links</h1>
<p>Manage private links for <strong>{{collection.title}}</strong>.</p>
{%- if private_links %}
<table id="private-links-table" class="branded-table">
  <thead><tr><th>Private link</th><th>Actions</th></tr></thead>
  <tbody>
    {%- for link in private_links: %}
    <tr>
      <td><a href="/private_collections/{{link.id_string}}">{{link.id_string}}</a></td>
      <td><a href="/my/collections/{{collection.uuid}}/private_link/{{link.id_string}}/delete" class="fas fa-trash-can" title="Remove"></a></td>
    </tr>
    {%- endfor %}
  </tbody>
</table>
{%- else %}
<div class="center"><a href="/my/collections/{{collection.uuid}}/private_link/new" class="button neutral-button">Create new private link</a></div>
{%- endif %}
{% endblock %}
