<table class="settings-list settings-list--stretch">
  <thead>
    <tr>
      <th width="35%"><%- @T('Email') %>
      <th width="60%"><%- @T('Fingerprint') %>
      <th width="5%"><%- @T('Actions') %>
  </thead>
  <tbody>
  <% if _.isEmpty(@keyPairs): %>
  <tr>
    <td colspan="6">
      <%- @T('No Entries') %>
    </td>
  </tr>
  <% else: %>
    <% for keyPair in @keyPairs: %>
      <tr data-id="<%= keyPair.id %>">
        <td><% if !_.isEmpty(keyPair.email_addresses): %><%= keyPair.email_addresses.toString() %><% end %>
          <% if keyPair.private_key: %><br><i><%- @T('Including private key.') %></i><% end %>
        <td title="<%= keyPair.fingerprint %>"><%= keyPair.fingerprint %>
        <td>
          <div class="dropdown dropdown--actions">
            <div class="btn btn--table btn--text btn--secondary js-action" data-toggle="dropdown">
              <%- @Icon('overflow-button') %>
            </div>
            <ul class="dropdown-menu dropdown-menu-right js-table-action-menu" role="menu">
            <% if keyPair.private_key: %>
              <li role="presentation" data-table-action="download-private">
                <a href="<%= @C('http_type') %>://<%= @C('fqdn')%>/api/v1/integration/pgp/private_key_download/<%= keyPair.id %>" download><%- @Icon('download') %> <%- @T('Download Private Key') %></a>
              </li>
            <% end %>
              <li role="presentation" data-table-action="download-public">
                <a href="<%= @C('http_type') %>://<%= @C('fqdn')%>/api/v1/integration/pgp/public_key_download/<%= keyPair.id %>"%download><%- @Icon('download') %> <%- @T('Download Public Key') %></a>
              </li>
              <li role="presentation" class="danger js-remove" data-table-action="remove">
                <%- @Icon('trash') %> <%- @T('Delete') %>
              </li>
            </ul>
          </div>
        </td>
    <% end %>
  <% end %>
  </tbody>
</table>
