{% extends 'layout.html.twig' %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %} {{ parent() }}
{% trans %}RANKING{% endtrans %}
{% set pos2 = 1 %} {% set userPos2 = 0 %} {% set sc = 0 %} {% for att in rankingIndividual %}{% if app.user.id == att.id %}{% set userPos2 = pos2 %}{% endif %}{% set pos2 = pos2 + 1 %}{% endfor %} {% for att in rankingIndividual %}{% if app.user.id == att.id %}{% set sc = att.score %}{% endif %}{% endfor %}

{{userPos2}}º {{ app.user.username }}

{{sc}}

Posiciones
{# #} {# Mostrar lista de todos los usuarios en la campaña #} {% set i = 1 %} {# {% for att in rankingIndividual if i <= 20 %} #} {% for att in rankingIndividual %} {% if att.score > 0 %} {% if app.user.id == att.id %}{% else %}{% endif %} {% if app.user.role == "ROLE_TUTOR" %} {% endif %} {% endif %} {% set i = i + 1 %} {% endfor %}
POSICIÓN USUARIO PUNTUACIÓN SEGUIMIENTO
{{i}}º {{att.name}} {{att.first_surname}} {{att.score}}{% trans %}see{% endtrans %}
{#
PREMIOS
#}
{{ include('Trivial/records/Tutorial/tutoRanking.html.twig') }} {% endblock %} {% block javascripts %} {{parent()}} {% endblock %}