{% comment %} This is a modification of the standard filter.html template that allows for more flexible filters. If a filter returns its title as "__filtrate__" the more flexible rendering is activated and the `choices()` method of the filter must return a dict wrapped in a list with the keys `title` and `content` instead. {% endcomment %} {% load i18n %} {% if title != '__filtrate__' %}

{% blocktrans with title as filter_title %} By {{ filter_title }} {% endblocktrans %}

{% else %}
{% if choices.0.title %}

{{choices.0.title}}

{% endif %}
{{choices.0.content}}
{% endif %}