<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{$title}} - Projects</title>
<style>
.centered { text-align: center; }
% include view/table.css
</style>
</head>
<body>
<h1 class="centered">Projects</h1>
<div class="centered"><a href="/p/new">new</a></div>
<br>
<table class="center">
<tr>
<th>name</th>
<th>description</th>
<th>priority</th>
<th>color</th>
<th>edit</th>
<th>delete</th>
</tr>
% for proj in $projs do
<tr>
<td><a href="/p/{{$proj.name}}">{{$proj.name}}</a></td>
<td>{{$proj.desc}}</td>
<td>{{$proj.priority}}</td>
<td><span style="background-color:{{$proj.color}};">{{$proj.color}}</span></td>
<td><a href="/p/{{$proj.name}}/edit">edit</a></td>
<td>
<form action="/p/{{$proj.name}}/del" method="post">
<button type="submit">delete</button>
</form>
</td>
</tr>
% end
</table>
</body>
</html>