{% extends "PackagistWebBundle:Web:list.html.twig" %}

{% set filters = [] %}

{% if type %}{% set filters = filters|merge(["of type #{type|join(' or ')}"]) %}{% endif %}
{% if tag %}{% set filters = filters|merge(["tagged with #{tag|join(' or ')}"]) %}{% endif %}

{% block content_title %}
    <h1>Packages {{ filters|join(' and ') }}</h1>
{% endblock %}

{# TODO:

- Add browsing by tag, type, most required, ..

#}