{% extends 'layouts/app.twig' %} {% import 'macros/base.twig' as m %} {% import 'macros/form.twig' as f %} {% block title %} {% if is_admin | default(false) %} {{ __('question.admin') }} {% else %} {{ __('question.questions') }} {% endif %} {% endblock %} {% block contact_options %} {% for name,opt in config('contact_options') %} {% set url = opt is iterable ? opt[0] : opt %} {% set permission = opt is iterable ? opt[1] : null %} {% if not permission or can(permission) %} {{ __(name) }} {% if not loop.last %},{% endif %} {% endif %} {% endfor %} {% endblock %} {% block content %}
{% include 'layouts/parts/messages.twig' %}
{% block row %}
{% block questions %} {% block faq_text %} {% if can('faq.view') %} {% if not is_admin | default(false) %}

{{ __('question.faq_link', [url('/faq')]) | raw }}

{% endif %} {% endif %} {% endblock %} {%- block info_text %} {% if config('contact_options') and not is_admin|default(false) %}

{{ m.info(__('question.contact_options') ~ block('contact_options'), true) }}

{% endif %} {% endblock %} {% for question in questions %}
{{ question.text|nl2br }}
{% if question.answer %}
{{ question.answer|markdown }}
{% endif %}
{% endfor %} {% endblock %}
{% endblock %}
{% endblock %}