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

TU GRUPO

{# #}

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

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

{% for att in rankingIndividual %}{% if app.user.gtGroup.id == att.id %}{{att.totalScore}} flexipoints{% endif %}{% endfor %} {% endif %}

PULSA AQUÍ PARA VER LOS PREMIOS

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