23 lines
618 B
Twig
23 lines
618 B
Twig
{% extends "MmiChallengeBundle:Default:base.html.twig" %}
|
|
|
|
{% block challenges %}
|
|
<ul>
|
|
{% for challenge in challenges %}
|
|
{% set is_next = challenge_peer.isNextChallenge(challenge) %}
|
|
{% set is_current = challenge_peer.isActiveChallenge(challenge) %}
|
|
|
|
<li class="{% if is_current %}active{% endif %} {% if is_next %}unavaliable{% endif %}">
|
|
<h1>{{ challenge.hour }}h | {{ challenge.title }}</h1>
|
|
|
|
{% if not is_next %}
|
|
<p>
|
|
{{ challenge.description|raw|nl2br }}
|
|
</p>
|
|
{% else %}
|
|
<p>Instructions indisponibles</p>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endblock %}
|