{% extends "IcapBadgeBundle::layout.html.twig" %} {% block title %}{{ collection.name }}{% endblock %} {% trans_default_domain "icap_badge" %} {% block content %} {{ macros.flashBox() }} {% if showBanner %}
{{ 'page_public_look'|trans }}
{% endif %}

{{ collection.name }} {{ 'collection_owned_by_user'|trans({'%user%': user.firstname ~ ' ' ~ user.lastName}) }}

{% for userBadge in collection.userBadges %} {% set badge = userBadge.badge %}

{{ badge.name }}

{{ badge.name }}
{{ 'badge_details'|trans }}
{{ 'badge_form_name'|trans }} {{ badge.name }}
{{ 'badge_awarding_date'|trans }} {{ userBadge.issuedAt|date('date_format'|trans({}, 'platform')) }}
{{ 'badge_form_description'|trans }} {{ badge.description }}
{{ 'badge_form_criteria'|trans }} {{ url('icap_badge_view_badge', {'slug': badge.slug}) }}
{% else %}

{{ 'no_badge_in_collection'|trans }}

{% endfor %} {% endblock %}