{% extends 'layout.html.twig' %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %} {{ parent() }}
{# PROFILE #} {% if trinder.cooperativeScore > 0 and trinder.type == "INDIVIDUAL_COOPERATIVE" %}
{% endif %}

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 %}

TOP PEPE JEANS

{# 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 %}
{{i}}º {{att.name}} {{att.first_surname}} {{att.score}} {% if i <= 5 %}{% else %}{% endif %}ver
{% if trinder.cooperativeScore > 0 and trinder.type == "INDIVIDUAL_COOPERATIVE" %} {% endif %}
{{ include('Trivial/records/Tutorial/tutoRanking.html.twig') }} {% endblock %} {% block javascripts %} {{parent()}} {% endblock %}