<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{$title}} - {{$rname}} history</title>
<style>
#nav-bar { float: left; }
#auth-bar { float: right; }
</style>
</head>
<body>
<div id="nav-bar">
<a href="/">home</a>
>
<a href="/group/{{$gname}}">{{$gname}}</a>
>
<a href="/group/{{$gname}}/repo/{{$rname}}">{{$rname}}</a>
>
history
>
<a href="/group/{{$gname}}/repo/{{$rname}}/commit/{{$first}}/tree/">tree</a>
</div>
<div id="auth-bar">
% if $user == nil then
<a href="/login">login</a>
% else
<strong>{{$user.name}}</strong>
<a href="/logout">(logout)</a>
% end
</div>
<br>
% if $prev then
<a href="/group/{{$gname}}/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 href="/group/{{$gname}}/repo/{{$rname}}/history/{{$next:id()}}">></a>
% else
>
% end
<p>Commits:</p>
<ul>
% set i = 0
% while $commit and $i < $limit do
<li><a href="/group/{{$gname}}/repo/{{$rname}}/commit/{{$commit:id()}}">{{$commit:summary()}}</a></li>
% set commit = $commit:parent()
% set i = $i + 1
% end
</ul>
</body>
</html>