<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{$title}} - Archive</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}} - archived tickets</h1>
<table class="center">
<tr>
<th>code</th>
<th>creation</th>
<th>title</th>
<th>state</th>
<th>priority</th>
<th>restore</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.state}}</td>
<td>{{$tick.priority}}</td>
<td>
<form action="{{$base_path}}/restore" method="post">
<button type="submit">restore</button>
</form>
</td>
</tr>
% end
</table>
</body>
</html>