2024-09-08 14:19:58 +02:00
|
|
|
{% extends "admin:base" %}
|
|
|
|
{% block content %}
|
2024-09-08 10:50:44 +02:00
|
|
|
<div class="row g-5 mb-5">
|
2024-09-08 14:19:58 +02:00
|
|
|
<h2 class="text-body-emphasis">Challenge {{ challenge.id }} — {{ challenge.title }}</h2>
|
|
|
|
<p class="mt-1 mb-3">{{ challenge.description }}</p>
|
2024-09-08 10:50:44 +02:00
|
|
|
<div class="col mt-1">
|
|
|
|
<h3>Hints</h3>
|
|
|
|
<button class="btn btn-primary my-2" type="button" data-bs-toggle="collapse" data-bs-target="#hints"
|
|
|
|
aria-expanded="false" aria-controls="collapseExample">
|
|
|
|
Show hints
|
|
|
|
</button>
|
|
|
|
<div class="collapse" id="hints">
|
|
|
|
<ul class="list-unstyled ps-0">
|
2024-09-08 14:19:58 +02:00
|
|
|
{% for hint in challenge.hints %}
|
2024-09-08 10:50:44 +02:00
|
|
|
<li>
|
|
|
|
<p>
|
|
|
|
<svg class="bi" width="16" height="16">
|
|
|
|
<use xlink:href="#arrow-right-circle" />
|
|
|
|
</svg>
|
|
|
|
{{hint}}
|
|
|
|
</p>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col mt-1">
|
|
|
|
<h3>Solution</h3>
|
|
|
|
<button class="btn btn-primary my-2" type="button" data-bs-toggle="collapse" data-bs-target="#solution"
|
|
|
|
aria-expanded="false" aria-controls="collapseExample">
|
|
|
|
Show solution
|
|
|
|
</button>
|
|
|
|
<div class="collapse" id="solution">
|
|
|
|
<p>
|
|
|
|
<svg class="bi" width="16" height="16">
|
|
|
|
<use xlink:href="#arrow-right-circle" />
|
|
|
|
</svg>
|
2024-09-08 14:19:58 +02:00
|
|
|
{{challenge.solution}}
|
2024-09-08 10:50:44 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr class="mb-5">
|
2024-09-08 14:19:58 +02:00
|
|
|
{% include "comp:contestants_winners" %}
|
2024-09-08 10:50:44 +02:00
|
|
|
{% endblock %}
|