[% USE cgi = CGI %]

<div class="title">
[%|l(path)%]history for path %1[%END%] <a href="[% script %]/[% repos %]/rss[% path %]">[%|l%](track)[%END%]</a>
[% IF isdir %]
<a href="[% script %]/[% repos %]/browse[% path %]?rev=[% rev %]">[%|l%](browse)[%END%]</a>
[% END %]
</div>
<div class="title">
<form action="[% cgi.self_url %]" method="get">[%|l%]Show last[%END%] <input name="limit" size=4 value="[% limit %]" /> changes <input type="submit" name="submit" value="[%|l%]Show[%END%]" /></form>
</div>
[% FOREACH revs %]
<hr />
<a name="rev[% rev %]"/>
<a href="[% script %]/[% repos %]/revision/?rev=[% rev %]">[%|l(rev)%]revision %1[%END%]</a>
[% IF isdir %]
<a href="[% script %]/[% repos %]/browse[% path %]?rev=[% rev %]">[%|l%](browse)[%END%]</a>
[% ELSE %]
<a href="[% script %]/[% repos %]/checkout[% path %]?rev=[% rev %]">[%|l%](checkout)[%END%]</a>
[% END %]
 - [% author %] - [% date %]<br/>

[% UNLESS isdir || loop.count == loop.size%]
[% prev = loop.count %]
[%|l%](diff with previous)[%END%]: <a href="[% script %]/[% repos %]/diff[% path %]?rev1=[% revs.$prev.rev %];rev2=[% rev %]">HTML</a> | <a href="[% script %]/[% repos %]/diff[% path %]?rev1=[% revs.$prev.rev %];rev2=[% rev %];mime=text/plain">TEXT</a><br/>
[% END %]
<p>
[% msg | log_msg %]
</p>
[% FOREACH pk = paths %]
[% pk.value.action %] -
[% IF pk.value.isdir %]
<a href="[% script %]/[% repos %]/browse[% pk.key %]/?rev=[% rev %]">[% pk.key %]</a>
[% IF pk.value.copyfrom %]
<a href="[% script %]/[% repos %]/browse[% pk.value.copyfrom %]?rev=[% pk.value.copyfromrev %]">[%|l(pk.value.copyfrom, pk.value.copyfromrev)%](from %1:%2)[%END%]</a>
[% END %]

[% ELSE %]
[% IF pk.value.action == 'D' %]
[% pk.key %]
[% ELSE %]
<a href="[% script %]/[% repos %]/view[% pk.key %]?rev=[% rev %]">[% pk.key %]</a>
<a href="[% script %]/[% repos %]/checkout[% pk.key %]?rev=[% rev %]">[%|l%](checkout)[%END%]</a>
[% END %]
[% IF pk.value.copyfrom %]
<a href="[% script %]/[% repos %]/log[% pk.value.copyfrom %]#rev[% pk.value.copyfromrev %]">[%|l(pk.value.copyfrom, pk.value.copyfromrev)%](from %1:%2)[%END%]</a>
[% END %]
[% END %]

<br />
[% END %]
[% END %]
