login

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>invites - {{$title}}</title>
  <style>
    .centered { text-align: center; }
    .mono { font-family: monospace; }
    % include view/menu.css
    % include view/table.css
  </style>
</head>
<body>
  % include view/menu.html
  <h1 class="centered">invites</h1>
  <table class="center">
    <tr>
      <th>invite</th>
      <th>expiration</th>
      <th>cancel</th>
    </tr>
    % for invite in $invites do
    <tr>
      <td><a href="/join?invite={{$invite.uuid}}" class="mono">{{$invite.uuid}}</a></td>
      <td>{{os.date("%F %T", $invite.expire)}}</td>
      <td>
        <form action="/i/{{$invite.uuid}}/del" method="post">
          <button type="submit">cancel</button>
        </form>
      </td>
    </tr>
    % end
  </table>
  <br>
  <form class="centered" action="/i" method="post">
    <button type="submit">add invite</button>
  </form>
</body>
</html>