{% extends '::base.html.twig' %}

{% block breadcrumbs %}{{ wo_render_breadcrumbs() }}{% endblock %}

{% block body %}
    <h1>Pliki do pobrania</h1>
    <div>
    {% for file in files %}
        <div>
            <div class="title">{{ file.title }}</div>
            <div class="desc">{{ file.content|raw }}</div>
            <div class="link"><a href="{{ url('wi_front_download_file_download', { 'id': file.id }) }}">pobierz</a></div>
        </div>
    {% endfor %}
    </div>

    {{ knp_pagination_render(files, '@KnpPaginator/Pagination/sliding.html.twig') }}
{% endblock %}
