{% extends noLayout|default(false) ? "::base_nolayout.html.twig" : "PackagistWebBundle::layout.html.twig" %}

{% import "PackagistWebBundle::macros.html.twig" as macros %}

{% block content %}
    {% block content_title %}<h3 class="title">Packages</h3>{% endblock %}

    {% block list %}
        {% if packages|length %}
            {{ macros.listPackages(packages, paginate is not defined or paginate, showAutoUpdateWarning|default(false), meta|default(null)) }}
        {% else %}
            <div class="alert alert-danger">
                <p>No packages found.</p>
            </div>
        {% endif %}
    {% endblock %}
{% endblock %}
