{% set feedback = flashMessage|json_decode %} {% if feedback is iterable %} {% embed 'WebelopingLanderBundle:Modal:modal.html.twig' %} {# {% block modal_id 'feedback-notification' %}#} {% block modal_class 'feedback-notification' %} {% block modal_title feedback.title|upper %} {% block modal_text_class %}top-multi-achiv{% endblock %} {% block modal_text %} {% for achievement in feedback.achievements %}
{% if achievement is defined and achievement.achievement_action is defined %}{{ (achievement.achievement_action ~ '.content')|trans({'%achievement%': ( achievement is defined ) ? achievement.achievement_name:'', '%points%': feedback.points|number_format, '%nickname%': feedback.nickname},'Feedback')}}{% endif %}
{% if achievement is defined and achievement is not empty %}
{{ ('Medalla ' ~ achievement.achievement_name)|upper }}
{% endif %}
{#{% if feedback.points is defined and feedback.points > 0 %}
Has ganado: {{ feedback.points|number_format }} puntos!
{% endif %}#}