{% load i18n cms_tags %} {% load url from future %} {% regroup object_list|dictsort:"category_id" by category as qgroups %}
{% for qgroup in qgroups %} {% if list %}

{{ qgroup.grouper }}

{% endif %}
{% for question in qgroup.list %} {% render_model question "title" %} {% if not list %}{{ qgroup.grouper }}{% endif %} {% endfor %}
{% empty %} {% if list %}

{{ qgroup.grouper|default:_("Category") }}

{% endif %}

{% trans "No entry found." %}

{% endfor %}
{% if list and title %} {% url 'aldryn_faq:faq-category' object.category.slug as category_url %} {% include "aldryn_faq/includes/pager.html" with title=_("Back to Category") slug=category_url %} {% endif %}