{% 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>

{% endblock content %}
