login

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  % if $page == "b" then
  %   set page_name = "backlog"
  %   set action_name = "todo"
  % else
  %   set page_name = "archive"
  %   set action_name = "restore"
  % end
  <title>{{$proj.name}} {{$page_name}} - {{$title}}</title>
  <style>
    .centered { text-align: center; }
    % include view/menu.css
    % include view/table.css
  </style>
</head>
<body>
  % include view/menu.html
  <h1 class="centered">{{$proj.name}} - {{$page_name}}</h1>
  <table class="center">
    <tr>
      <th>code</th>
      <th>creation</th>
      <th>title</th>
      <th>priority</th>
      <th>{{$action_name}}</th>
    </tr>
    % for tick in $ticks do
      % set base_path = "/p/"..$proj.name.."/t/"..$tick.code
      <tr>
        <td><a href="{{$base_path}}">#{{$tick.code}}</a></td>
        <td>{{os.date("%F %R", $tick.time)}}</td>
        <td>{{$tick.title}}</td>
        <td>{{$tick.priority}}</td>
        <td>
          <form action="{{$base_path}}/restore" method="post">
            <button type="submit">{{$action_name}}</button>
          </form>
        </td>
      </tr>
    % end
  </table>
</body>
</html>