<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{$title}} - {{$rname}} history</title>
<style>
#nav-bar { float: left; }
% include view/auth.css
#page-nav {
font-size: x-large;
color: grey;
}
.page-shift {
text-decoration: none;
font-weight: bolder;
color: blue;
}
% include view/table.css
</style>
</head>
<body>
<div id="nav-bar">
<a href="/">home</a>
>
<a href="/repo/{{$rname}}">{{$rname}}</a>
>
history
>
<a href="/repo/{{$rname}}/commit/{{$first}}/tree/">tree</a>
</div>
% include view/auth.html
<br><br>
<span id="page-nav">
% if $prev then
<a class="page-shift" href="/repo/{{$rname}}/history/{{$prev:id()}}"><</a>
% else
<
% end
% set i = 0
% set next = $commit
% while $next and $i < $limit do
% set next = $next:parent()
% set i = $i + 1
% end
% if $next then
<a class="page-shift" href="/repo/{{$rname}}/history/{{$next:id()}}">></a>
% else
>
% end
</span>
<table>
<tr>
<th>date</th>
<th>commit</th>
<th>author</th>
</tr>
% set i = 0
% while $commit and $i < $limit do
% set sig = $commit:signature()
<tr>
<td>{{os.date("%Y-%m-%d", $sig.time_)}}</td>
<td><a href="/repo/{{$rname}}/commit/{{$commit:id()}}">{{$commit:summary()}}</a></th>
<td>{{$sig.email}}</td>
</tr>
% set commit = $commit:parent()
% set i = $i + 1
% end
</table>
</body>
</html>