qchgk_web/templates/answer.html.tera

59 lines
2.2 KiB
Plaintext
Raw Normal View History

2019-08-05 14:06:27 +00:00
{% extends "base" %} {% block title %} Ответ {% endblock title %}
2019-08-19 12:58:47 +00:00
{% block nav %}
<li class="nav-item"><a class="nav-link text-primary" href="/q/{{ next }}">Ещё</a></li>
{% endblock nav %}
2019-08-02 10:47:16 +00:00
{% block content %}
<!-- <h1>{{ id }}</h1> -->
<div class="content-block">
<div id="question" class="content-block-inner">
2019-08-22 12:18:38 +00:00
<p>
<h4 class="text-muted"> {{ description }} </h4>
2019-08-02 10:47:16 +00:00
</p>
</div>
</div><br />
<div class="content-block">
<div id="answer" class="content-block-inner">
2019-08-22 12:18:38 +00:00
<div class="mt-2 px-2 py-1 shadow rounded">
<!-- <h2> Ответ: </h2> -->
<h1 class="display-4 d-flex justify-content-center text-center">{{ answer }}</h1>
</div><br><br/><details>
2019-08-02 10:47:16 +00:00
<div id="details">
{% if comment | length or comment1 | length %}
<p><span>Комментарии:</span>
{% if comment | length %}
{{ comment }}
{% endif %}
{% if comment1 | length %}
<br/>
{{ comment1 }}
{% endif %}
</p>
{% endif %}
{% if author | length %}
<p><span>Автор: </span> {{ author }}</p>
{% endif %}
{% if copyright | length %}
<p><span>Копирайт: </span> {{ copyright }}</p>
{% endif %}
{% if source | length %}
<p><span>Источник: </span> {{ source }}</p>
{% endif %}
{% if theme | length %}
<p><span>Тема: </span> {{ theme }}</p>
{% endif %}
{% if rating | length %}
<p><span>Рейтинг: </span> {{ author }}</p>
{% endif %}
{% if batch_info.description | length %}
<p><span>Чемпионат: </span> {{ batch_info.description }}</p>
{% endif %}
{% if tour | length %}
<p><span>Тур: </span> {{ tour }}</p>
{% endif %}
{% if id | length %}
<p><span>Номер: </span> {{ id }}</p>
{% endif %}
</div></details>
</div>
<br />
{% endblock content %}