{% extends 'modern/base.html' %}

{% block title %}Downloads - {{super()}} {% endblock %}

{% block subtitle %}
{{_('Downloads')}}
{% endblock %}

{% block content %}

<ul style="list-style-type: none;">
    {% for folder in files.folder %}
    <li style="list-style-type: none;">
        <span style="margin-right: 5px" class="glyphicon glyphicon-folder-close"></span>{{folder.name}}
        <ul>
        {% for file in folder.files %}
        <li style="list-style-type: none;"><span style="margin-right: 5px" class="glyphicon glyphicon-file"></span><a href='get/{{folder.path|escape}}/{{file|escape}}'>{{file}}</a></li>
        {% endfor %}
        </ul>
    </li>
    {% endfor %}

    {% for file in files.files %}
    <li style="list-style-type: none;"> <span style="margin-right: 5px" class="glyphicon glyphicon-file"></span><a href='get/{{file|escape}}'>{{file}}</a></li>
    {% endfor %}

</ul>

{% endblock %}
