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

{{ qgroup.grouper }}

{% endif %}
{% for question in qgroup.list %} {% if view.config.app_data.config.show_description %}

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

{% render_model question "answer_text" %}
{% else %} {% render_model question "title" %} {% if not list %}{{ qgroup.grouper }}{% endif %} {% for tag in question.tags.all %} {{ tag }} {% endfor %} {% endif %} {% endfor %}
{% empty %} {% if list %}

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

{% endif %}

{% trans "No entry found." %}

{% endfor %}
{% if list and title %} {% include "aldryn_faq/includes/pager.html" with title=_("Back to Category") slug=object.category.get_absolute_ur %} {% endif %}