{%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') }}
{% set total = 0 %} {% for record in pagination %} {% set total = total + record.score %} {% endfor %} {% set porcentaje = (total*100)/trivial.maxPuntuacion %}
{{total}}/{{trivial.maxPuntuacion}}
{# Mostrar usuario loggueado al principio para que pueda ver sus stats #} {% set i = 1 %} {% for attempt in pagination %} {% if app.user.id == attempt.attempt.user.id %} {% 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 %} {% set i = i + 1 %} {% endfor %} {% for user in users_notplay %} {% set i = i + 1 %} {% endfor %}
POSICIÓN USUARIO PUNTUACIÓN SEGUIMIENTO
{{i}} {{attempt.attempt.user.userName}} {{attempt.score}} {% if app.user.role == 'ROLE_ADMIN' or app.user.role == 'ROLE_TUTOR' or app.user.id == attempt.attempt.user.id %} ver {% endif %}
{{user.userName}} 0 ver
{{i}} {{attempt.attempt.user.userName}} {% if attempt.score%}{{attempt.score}}{% else %} 0 {% endif %} {% if app.user.role == 'ROLE_ADMIN' or app.user.role == 'ROLE_TUTOR' or app.user.id == attempt.attempt.user.id %} ver {% else %} ver {% endif %}
{{user.userName}} 0 ver
{% endblock %} {% block javascripts %} {{parent()}}> {% endblock %}