{%extends 'layout.html.twig' %} {% block stylesheets %} {{parent()}} {% endblock %} {% block body %} {{ parent() }}
{% if app.user.role == 'ROLE_ADMIN' %} Volver a Competiciones {% elseif app.user.role == 'ROLE_TUTOR'%} Volver a Campañas {% else %} Volver a Campañas {% endif %}
{{ include ('Trivial/records/recordsHeader.html.twig') }}
{# Mostrar usuario loggueado al principio para que pueda ver sus stats #} {% set i = 1 %} {% for attempt in pagination %} {% if app.user.id == attempt.user.id %} {% for total_intentos in total_attempts %} {% if total_intentos.user_id == attempt.user.id%}{% endif %} {% endfor %} {% for total_contestadas in total_answers %} {% if total_contestadas.user_id == attempt.user.id%}{% endif %} {% endfor %} {% endif %} {% set i = i + 1 %} {% endfor %} {% for user in users_notplay %} {% if app.user.id == user.id %} {% endif %} {% set i = i + 1 %} {% endfor %} {# Mostrar lista de todos los usuarios en la campaña #} {% set i = 1 %} {% for attempt in pagination %} {% for total_intentos in total_attempts %} {% if total_intentos.user_id == attempt.user.id%}{% endif %} {% endfor %} {% for total_contestadas in total_answers %} {% if total_contestadas.user_id == attempt.user.id%}{% endif %} {% endfor %} {% set i = i + 1 %} {% endfor %} {% for user in users_notplay %} {% set i = i + 1 %} {% endfor %}
POSICIÓN USUARIO INTENTOS PREGUNTAS CONTESTADAS PUNTUACIÓN SEGUIMIENTO
{{i}} {{attempt.user.userName}}{{total_intentos.total_intentos}}{{total_contestadas.total_contestadas}}{{attempt.totalScore}} {% if app.user.role == 'ROLE_ADMIN' or app.user.role == 'ROLE_TUTOR' or app.user.id == attempt.user.id %} ver {% endif %}
{{user.userName}} 0 0 0 ver
{{i}} {{attempt.user.userName}}{{total_intentos.total_intentos}}{{total_contestadas.total_contestadas}}{{attempt.totalScore}} {% if app.user.role == 'ROLE_ADMIN' or app.user.role == 'ROLE_TUTOR' or app.user.id == attempt.user.id %} ver {% else %} ver {% endif %}
{{user.userName}} 0 0 0 ver
{% endblock %} {% block javascripts %} {{parent()}}> {% endblock %}