{# Phase display #} {% if precedentExercise is empty or precedentExercise.phase != exercise.phase %} {% if exercise.phase %} {{exercise.phase.name}} {% if exercise.phase.subname %} {{exercise.phase.subname}} {% endif %} {% endif %} {% endif %} {# Groups display #} {% if precedentExercise is empty or precedentExercise.groupes != exercise.groupes %} {% for groupe in exercise.groupes %} {{groupe.name}} {% endfor %} {% endif %} {# informations display #} {% if precedentExercise is empty or precedentExercise.informations != exercise.informations %} {% for information in exercise.informations %} {% if information not in precedentExercise.informations and information.displayInformation == 0 %} {% if information.isPrivate %} {% set rowColLength = 1 %} {% set rowColLength = rowColLength + 3 %} {% if "*--*" not in information.value %} {{information.value|nl2br}} {% else %} {% set informationValues = information.value|nl2br|split("*--*") %}
{% for informationValue in informationValues %} {{ informationValue|nl2br }} {% endfor %}
{% endif %} {% else %} {{information.value}} {% endif %} {% endif %} {% endfor %} {% endif %} {# exercise display #} {% set rowColLength = 0 %} {% for option in exercise.options %} {% if option.name == "FCL" %} {{ option.value }} {% set rowColLength = rowColLength + 1 %} {% endif %} {% if option.name == "time" %} {% if rowColLength < 1 %} {% set rowColLength = rowColLength + 1 %} {% endif %} {{ option.value }} {% set rowColLength = rowColLength + 1 %} {% endif %} {% endfor %} {% if rowColLength < 2 %} {% for i in 1.. (2 - rowColLength) %} {% set rowColLength = rowColLength + 1 %} {% endfor %} {% endif %} {{exercise.number}} {% set rowColLength = rowColLength + 1 %} {% set exerciseDuringInformation = [] %} {% for information in exercise.informations %} {% if information.displayInformation == 1 %} {% set exerciseDuringInformation = exerciseDuringInformation|merge([information]) %} {% endif %} {% endfor %}
{% if '*--*' in exercise.name %} {% set exerciseNames = exercise.name|nl2br|split('*--*') %}
{% for exerciseName in exerciseNames %} {{ exerciseName }} {% endfor %}
{% else %}
{{exercise.name|nl2br}}
{% endif %} {% if exerciseDuringInformation %}
{% for information in exerciseDuringInformation %} {{ information.value|nl2br }} {% endfor %}
{% endif %}
{% set rowColLength = rowColLength + 1 %} {% for i in rowColLength + 1 .. tableColLength %} {% if RatingPosition["_"~exercise.minRating.value] == i - 1 %} {% else %} {% endif %} {% endfor %} {% for information in exercise.informations %} {% if information.displayInformation == 2 %} {% set rowColLength = rowColLength + 3 %} {% if "*--*" not in information.value %} {{information.value|nl2br}} {% else %} {% set informationValues = information.value|nl2br|split("*--*") %}
{% for informationValue in informationValues %} {{ informationValue|nl2br }} {% endfor %}
{% endif %} {% endif %} {% endfor %}