<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{$title}} - {{$rname}}</title>
<style>
#nav-bar { float: left; }
% include view/auth.css
% include view/table.css
</style>
</head>
<body>
<div id="nav-bar">
<a href="/">home</a>
>
{{$rname}}
</div>
% include view/auth.html
<br>
<h3 class="center">Branches</h3>
<table class="center">
<tr>
<th>history</th>
<th>archive</th>
</tr>
% for bname in $bnames do
<tr>
<td><a href="/repo/{{$rname}}/history/{{$bname}}">{{$bname}}</a></td>
% set archive_name = $rname.."-"..$bname.."."..$fmt
<td>
<a href="/repo/{{$rname}}/archive/{{$bname}}" download="{{$archive_name}}">
{{$archive_name}}
</a>
</td>
</tr>
% end
</table>
% if #$tnames > 0 then
<h3 class="center">Tags</h3>
<table class="center">
<tr>
<th>commit</th>
<th>archive</th>
</tr>
% for tname in $tnames do
% set cid = $repo:commit($tname.."^{}"):id()
<tr>
<td><a href="/repo/{{$rname}}/commit/{{$cid}}">{{$tname}}</a></td>
% set archive_name = $rname.."-"..$tname.."."..$fmt
<td>
<a href="/repo/{{$rname}}/archive/{{$tname}}" download="{{$archive_name}}">
{{$archive_name}}
</a>
</td>
</tr>
% end
</table>
% end
</body>
</html>