film2.0/templates/directory.html

39 lines
753 B
HTML

{% extends 'base.html' %}
{% block title %}{{ path }}{% endblock %}
{% block body %}
<form action="/search" method="GET">
<input type="text" name="q" />
<input type="submit" value="Buscar" />
</form>
<br />
{% if path != "/" %}
<a href="../">&lt;--</a>
<br /><br />
{% endif %}
{% for dir in dirs %}
<a href="{{ path_join(path, dir) }}">{{ dir }}</a><br />
{% endfor %}
<br /><br />
{% if files|length > 0 %}
<h3>Archivos</h3>
{% endif %}
{% for file in files %}
<a href="{{ path_join(path, file) }}">{{ file }}</a><br />
{% endfor %}
{% if footer not in [None, False, ""] %}
<footer>
{{ footer }}
</footer>
{% endif %}
{% endblock %}