{% extends 'layout.html.twig' %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %} {{ parent() }}
{# PROFILE #}

PULSA AQUÍ PARA VER LOS PREMIOS

{#

Tus puntos personales

{% set pos = 1 %} {% set userPos = 0 %} {% for att in rankingIndividual %}{% if app.user.id == att.id %}{% set userPos = pos %}{% if pos <= 5 %}{% else %}{% endif %}{% endif %}{% set pos = pos + 1 %}{% endfor %}

{% set pos2 = 1 %} {% set userPos2 = 0 %} {% for att in rankingIndividual %}{% if app.user.id == att.id %}{% set userPos2 = pos2 %}{{ pos2 }}º{% endif %}{% set pos2 = pos2 + 1 %}{% endfor %} {{ app.user.username }}

{% if app.user.role == "ROLE_USER" %}

{% for att in rankingIndividual %}{% if app.user.id == att.id %} {{att.score}}{% endif %}{% endfor %}

{% endif %}
#}

{% set pos2 = 1 %} {% set userPos2 = 0 %} {% for att in rankingIndividual %}{% if app.user.id == att.id %}{% set userPos2 = pos2 %}{{ pos2 }}º{% endif %}{% set pos2 = pos2 + 1 %}{% endfor %} {{ app.user.username }}

{% if app.user.role == "ROLE_USER" %}

{% for att in rankingIndividual %}{% if app.user.id == att.id %} {{att.score}}{% endif %}{% endfor %}

{% endif %}
{# #} {# 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 > 50 %} {% if loop.index == 6 %}
{% endif %} {% if app.user.role == "ROLE_TUTOR" %} {% endif %} {% set i = i + 1 %} {% endif %} {% endfor %}
{% if i == 1 or i == 2 or i == 3 or i == 4 or i == 5 %}{% else %}{{i}}º{% endif %} {{att.name}} {{att.first_surname}} {{att.score}}ver
{#
PREMIOS
#}
{% set week = "week1" %} {{ include('Trivial/records/Tutorial/tutoRanking.html.twig') }} {% endblock %} {% block javascripts %} {{parent()}} {% endblock %}