{% for trivialBadge in pagination %}
{% set gained = 0 %}
{# Comprueba si el usuario ha conseguido las medallas #}
{% for userBadge in trivialBadge.badges.badgeUserInReference %}
{% if userBadge.user.id == app.user.id and userBadge.isGained == 1 and userBadge.trivial.id == trivial.id %}
{% set gained = 1 %}
{% endif %}
{% endfor %}
{{trivialBadge.badges.name}}
{{trivialBadge.badges.description}}
{{trivialBadge.badges.rules.concatToString}}
{% endfor %}
{% if app.user.role != 'ROLE_USER' %}