{% load humanize %} {% if ports.count > 0 %} {% if content == "Category" %}

Your search "{{ query }}" in category "{{ search_in }}" matched {{ ports|length|intcomma }} ports.

{% elif content == "Maintainer" %}

Your search "{{ query }}" in ports maintained by "{{ search_in }}" matched {{ ports|length|intcomma }} ports.

{% elif content == "Variant" %}

Your search "{{ query }}" in variant "{{ search_in }}" matched {{ ports|length|intcomma }} ports.

{% else %}

Showing results for "{{ query }}".

{% endif %} {% if content == "Variant" %} {% for port in ports %} {% endfor %}
Name Version Description
{{ port.port.name }} {{ port.port.version }} {{ port.port.description }}
{% else %} {% for port in ports %} {% endfor %}
Name Version Description
{{ port.name }} {{ port.version }} {{ port.description }}
{% endif %} {% else %}

{% if content == "Category" %} {% elif content == "Maintainer" %} {% elif content == "Variant" %} {% else %} {% endif %} {% endif %}