{% 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>
		{% for folder in folders %}
		<tr>
			<td class="ico"><a href="./{{ folder }}"><img src="{{ url_for("static", filename="folder.png") }}" alt="Folder" /></a></td>
			<td><a href="./{{ folder }}">{{ folder }}</a></td>
		</tr>
		{% endfor %}
		{% for branch in branches %}
		<tr>
			<td class="ico"><a href="./{{ branch }}"><img src="{{ url_for("static", filename="branch.png") }}" alt="Branch" /></a></td>
			<td><a href="./{{ branch }}">{{ branch }}</a></td>
		</tr>
		{% endfor %}
	</table>
</div>
<div id="branchinfo">
	<h2>Trunk Informations</h2>
	<ul>
		<li>
			<strong>Last revision (trunk):</strong> {{ lastcommit.revno }}
			<span>On {{ lastcommit.timestamp|dtformat }} by {{ lastcommit.committer|hideemail }}</span>
			<pre><code>{{ lastcommit.message }}</code></pre>
			<ul class="export">
				<li><a href="{{ url_for("export", path=path+"trunk", revno=lastcommit.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+"trunk", revno=lastcommit.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="projectinfo">
	<h2>Project informations (README)</h2>
	<pre>{{ readme|hideemail }}</pre>
</div>
{% endblock content %}
