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

<div id="branchurl" class="viewbloc">
	<h2>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 <span>#{{ log[0].revno }}</span></h2>
	<ul class="export">
		<li class="btn"><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">Download .tar.gz</a></li>
		<li class="btn"><a href="{{ url_for("export", path=path[:-1], revno=log[0].revno, archive_format="zip") }}" rel="nofollow" title="Export this revision in .zip">Download .zip</a></li>
	</ul>
	<pre>{{ log[0].message }}</pre>
	<div class="viewblocbottom">
		By {{ log[0].committer|rmemail }}, on {{ log[0].timestamp|dtformat }}
	</div>
</div>

<div id="branchlog" class="viewbloc">
	<h2>Branch Log</h2>
	<table>
		{% for rev in log %}
			<tr>
				<td class="revno"><span>{{ rev.revno }}</span></td>
				<td>
					<h3>By {{ rev.committer|rmemail }}, <span>on {{ rev.timestamp|dtformat }}</span></h3>
					<ul class="export">
						<li class="btn"><a href="{{ url_for("export", path=path[:-1], revno=rev.revno, archive_format="tar.gz") }}" rel="nofollow" title="Export this revision in .tar.gz">.tar.gz</a></li>
						<li class="btn"><a href="{{ url_for("export", path=path[:-1], revno=rev.revno, archive_format="zip") }}" rel="nofollow" title="Export this revision in .zip">.zip</a></li>
					</ul>
					<pre>{{ rev.message }}</pre>
				</td>
			</tr>
		{% endfor %}
	</table>
</div>

{% endblock content %}
