{% set countTrainings = 0 %}
{% for training in listuser.trainings %}
{% if training.trainingEnable or canSeeHiddenTrainings %}
{% set countTrainings = countTrainings + 1 %}
{% endif %}
{% endfor %}
{% if listuser.trainings|first.id != "" and countTrainings > 0 %}
{{ countTrainings }}
{% if countTrainings == 1 %}
Training
{% else %}
Trainings
{% endif %}
{% else %}
Keine Trainings
{% endif %}
{% if listuser.trainings|first.id != "" %}
{% for training in listuser.trainings %}
{% if training.trainingEnable or canSeeHiddenTrainings %}
{% if userCanSeeTrainingsProgress %}
{{ training.getFin() }} %
{% endif %}
{% for lektion in training.lektionsliste %}
{{ lektion.title }}
{% if userCanSeeTrainingsProgress %}
{{ lektion.fin }} %{% if training.id != "" and lektion.id != "" and lektion.getTrainingAuto() == "2" and lektion.getFin() == 100 and not lektion.isFeedback() %}
{% endif %}