{% extends "_layout.html" %}
{% block content %}

<div id="browse" class="viewbloc">
	<h2>Browse <span>{{ path }}</span></h2>
	<table>
		{% if path != "/" %}
			<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>
		{% endif %}
		{% 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="branchurl" class="viewbloc">
	<h2>trunk Branch URL</h2>
	<table>
		<tr>
			<td class="label">HTTP (read only)</td>
			<td><code>{{ branch_readonly_url }}</code></td>
		</tr>
		<tr>
			<td class="label">SFTP</td>
			<td><code>{{ branch_readwrite_url }}</code></td>
		</tr>
	</table>
</div>

<div id="lastrevision" class="viewbloc">
	<h2>Last Revision in trunk <span>#{{ lastcommit.revno }}</span></h2>
	<ul class="export">
		<li class="btn"><a href="{{ url_for("export", path=path+"trunk", revno=lastcommit.revno, archive_format="tar.gz") }}" rel="nofollow" title="Export this revision in .tar.gz">Download .tar.gz</a></li>
		<li class="btn"><a href="{{ url_for("export", path=path+"trunk", revno=lastcommit.revno, archive_format="zip") }}" rel="nofollow" title="Export this revision in .zip">Download .zip</a></li>
	</ul>
	<pre>{{ lastcommit.message }}</pre>
	<div class="viewblocbottom">
		By {{ lastcommit.committer|rmemail }}, on {{ lastcommit.timestamp|dtformat }}
	</div>
</div>

<div id="projectreadme" class="viewbloc">
	<h2>README</h2>
	<pre>{{ readme|hideemail }}</pre>
</div>

{% endblock content %}
