{% extends 'admin/layout.html.twig' %} {% block title %}Administration site Internet - EDIFIA WEB{% endblock %} {% block content %} {% autoescape false %}

{{ 'user.stats.page_title'|trans({'%username%': user.firstname ~ ' ' ~ user.lastname}, 'admin') }}

{{ 'user.stats.questions_title'|trans({}, 'admin') }}

{% if questions is defined and questions is iterable %} {% for question in questions %} {% endfor %} {% endif %}
{{ 'question.label.id'|trans({}, 'admin') }} {{ 'question.label.wording'|trans({}, 'admin') }} {{ 'question.label.complete'|trans({}, 'admin') }} {{ 'question.label.is_validated'|trans({}, 'admin') }} {{ 'question.label.is_moderated'|trans({}, 'admin') }} {{ 'question.label.contestation'|trans({}, 'admin') }} {{ 'question.label.actions'|trans({}, 'admin') }}
{{ question.id }} {{ question.wording }} {{ (question.isComplete == true) ? '' ~ 'yes'|trans ~ '' : '' ~ 'no'|trans ~ ' ' }} {{ (question.isValidated == true) ? '' ~ 'yes'|trans ~ '' : '' ~ 'no'|trans ~ '' }} {{ (question.isModerated == true) ? '' ~ 'yes'|trans ~ '' : '' ~ 'no'|trans ~ '' }} {{ question.contestations|length }} {% if question.contestations|length > 0 %} {{ 'button.list'|trans({}) }} {% endif %} {% if is_granted('ROLE_ADMIN') %} {{ 'button.edit'|trans({}) }} {% endif %} {% if question.user.id != app.user.id and question.isComplete == true and question.isToCorrect == false and question.countMyModerations == 0 %} {{ 'button.moderate'|trans({}) }} {% endif %}

{{ 'user.stats.contestations_title'|trans({}, 'admin') }}

{% if user.contestations is defined and user.contestations is iterable %} {% for contestation in user.contestations %} {% endfor %} {% endif %}
{{ 'contestation.label.wording'|trans({}, 'admin') }} {{ 'contestation.label.comment'|trans({}, 'admin') }} {{ 'contestation.label.validated'|trans({}, 'admin') }} {{ 'contestation.label.processed'|trans({}, 'admin') }} {{ 'contestation.label.active'|trans({}, 'admin') }} {{ 'contestation.label.actions'|trans({}, 'admin') }}
{{ contestation.question.wording }} {{ contestation.comment }} {{ (contestation.isValidated == true) ? '' ~ 'yes'|trans ~ '' : '' ~ 'no'|trans ~ '' }} {{ (contestation.processed == true) ? '' ~ 'yes'|trans ~ '' : '' ~ 'no'|trans ~ '' }} {{ (contestation.isActive == true) ? '' ~ 'yes'|trans ~ '' : '' ~ 'no'|trans ~ '' }} {{ 'button.moderate'|trans({}) }}

{{ 'user.stats.post_likes_title'|trans({}, 'admin') }}

{% if post_likes is defined and post_likes is iterable %} {% for like in post_likes %} {% endfor %} {% endif %}
{{ 'comment.label.post'|trans({}, 'admin') }} {{ 'comment.label.created_at'|trans({}, 'admin') }}
{{ like.post.title }} {% if like.post.content is not empty %}
{{ like.post.content }} {% endif %}
{{ like.createdAt|date('d/m/Y H:i') }}

{{ 'user.stats.question_comments_title'|trans({}, 'admin') }}

{% if question_comments is defined and question_comments is iterable %} {% for comment in question_comments %} {% endfor %} {% endif %}
{{ 'comment.label.post'|trans({}, 'admin') }} {{ 'comment.label.comment'|trans({}, 'admin') }} {{ 'comment.label.is_reported'|trans({}, 'admin') }} {{ 'comment.label.is_moderated'|trans({}, 'admin') }} {{ 'comment.label.created_at'|trans({}, 'admin') }}
{{ comment.question.wording }} {% if comment.question.help is not empty %}
{{ comment.question.help }} {% endif %}
{{ comment.comment }} {{ (comment.isReported == true) ? '' ~ 'yes'|trans ~ '' : '' ~ 'no'|trans ~ '' }} {{ (comment.isModerated == true) ? '' ~ 'yes'|trans ~ '' : '' ~ 'no'|trans ~ '' }} {{ comment.createdAt|date('d/m/Y H:i') }}

{{ 'user.stats.quiz_comments_title'|trans({}, 'admin') }}

{% if quiz_comments is defined and quiz_comments is iterable %} {% for comment in quiz_comments %} {% endfor %} {% endif %}
{{ 'comment.label.post'|trans({}, 'admin') }} {{ 'comment.label.comment'|trans({}, 'admin') }} {{ 'comment.label.is_reported'|trans({}, 'admin') }} {{ 'comment.label.is_moderated'|trans({}, 'admin') }} {{ 'comment.label.created_at'|trans({}, 'admin') }}
{{ comment.quiz.name }} {{ comment.comment }} {{ (comment.isReported == true) ? '' ~ 'yes'|trans ~ '' : '' ~ 'no'|trans ~ '' }} {{ (comment.isModerated == true) ? '' ~ 'yes'|trans ~ '' : '' ~ 'no'|trans ~ '' }} {{ comment.createdAt|date('d/m/Y H:i') }}

{{ 'user.stats.post_comments_title'|trans({}, 'admin') }}

{% if post_comments is defined and post_comments is iterable %} {% for comment in post_comments %} {% endfor %} {% endif %}
{{ 'comment.label.post'|trans({}, 'admin') }} {{ 'comment.label.comment'|trans({}, 'admin') }} {{ 'comment.label.is_reported'|trans({}, 'admin') }} {{ 'comment.label.is_moderated'|trans({}, 'admin') }} {{ 'comment.label.created_at'|trans({}, 'admin') }}
{{ comment.post.title }} {% if comment.post.content is not empty %}
{{ comment.post.content }} {% endif %}
{{ comment.comment }} {{ (comment.isReported == true) ? '' ~ 'yes'|trans ~ '' : '' ~ 'no'|trans ~ '' }} {{ (comment.isModerated == true) ? '' ~ 'yes'|trans ~ '' : '' ~ 'no'|trans ~ '' }} {{ comment.createdAt|date('d/m/Y H:i') }}
{% endautoescape %} {% endblock %}