{% extends "_layout.html" %}
{% block content %}
<div id="browse">
	<h2>Browse <span>{{ path }}</span></h2>
	<table>
		<tr>
			<td class="ico"><a href=".."><img src="{{ url_for("static", filename="parent.png") }}" alt="Parent Folder" /></a></td>
			<td><a href="..">..</a></td>
		</tr>
	</table>
</div>
<div id="branchinfo">
	<h2>Branch Informations</h2>
	<ul>
		<li>
			<strong>Last revision:</strong> {{ log[0].revno }}
			<span>On {{ log[0].timestamp|dtformat }} by {{ log[0].committer|hideemail }}</span>
			<ul class="export">
				<li><a href="{{ url_for("export", path=path[:-1], revno=log[0].revno, archive_format="tar.gz") }}" rel="nofollow" title="Export this revision in .tar.gz"><img src="{{ url_for("static", filename="export.png") }}" alt="tgz" /> .tar.gz</a></li>
				<li><a href="{{ url_for("export", path=path[:-1], revno=log[0].revno, archive_format="zip") }}" rel="nofollow" title="Export this revision in .zip"><img src="{{ url_for("static", filename="export.png") }}" alt="zip" /> .zip</a></li>
			</ul>
		</li>
		<li><strong>Branch URL (read only):</strong> <code>{{ branch_readonly_url }}</code></li>
		<li><strong>Branch URL (read/write):</strong> <code>{{ branch_readwrite_url }}</code></li>
	</ul>
</div>
<div id="branchlog">
	<h2>Branch Log</h2>
	<table>
		{% for rev in log %}
			<tr>
				<td class="revno"><span>{{ rev.revno }}</span></td>
				<td>
					<h3>On {{ rev.timestamp|dtformat }} <span>by {{ rev.committer|hideemail }}</span></h3>
					<ul class="export">
						<li><a href="{{ url_for("export", path=path[:-1], revno=rev.revno, archive_format="tar.gz") }}" rel="nofollow" title="Export this revision in .tar.gz"><img src="{{ url_for("static", filename="export.png") }}" alt="tgz" /> .tar.gz</a></li>
						<li><a href="{{ url_for("export", path=path[:-1], revno=rev.revno, archive_format="zip") }}" rel="nofollow" title="Export this revision in .zip"><img src="{{ url_for("static", filename="export.png") }}" alt="zip" /> .zip</a></li>
					</ul>
					<pre>{{ rev.message }}</pre>
				</td>
			</tr>
		{% endfor %}
	</table>
</div>
{% endblock content %}
