{% import "macros/profileelements.twig" as profile %}

{{ env.getRequestParameter("cup") }}

{% if round|length > 0 and round.cup_logo|length > 0 %}
{% endif %}

{{ env.getRequestParameter("round") }}

{% if round|length > 0 %} {% if round.prev_round_winners|length > 0 %}

{{ i18n.getMessage("cup_created_from_winners_of_round", round.prev_round_winners|e)|raw }}

{% elseif round.prev_round_loosers|length > 0 %}

{{ i18n.getMessage("cup_created_from_loosers_of_round", round.prev_round_loosers|e)|raw }}

{% endif %} {% if groups|length > 0 %}
{{ i18n.getMessage("cup_title_groups") }}

{{ i18n.getMessage("cup_group_select_group_placeholder") }}
{% else %} {% if round.secondround_date < 1 %} {{ profile.infofield(i18n.getMessage("cup_firstround_only_date"), env.getFormattedDatetime(round.firstround_date)) }} {% else %} {{ profile.infofield(i18n.getMessage("cup_firstround"), env.getFormattedDatetime(round.firstround_date)) }} {{ profile.infofield(i18n.getMessage("cup_secondround"), env.getFormattedDatetime(round.secondround_date)) }} {% endif %} {% endif %} {% endif %} {% if groups is not defined or groups|length == 0 %}
{% include 'blocks/results-list.twig' %} {% endif %}