NDOJ/templates/problem/editorial.html

43 lines
1.3 KiB
HTML
Raw Normal View History

2020-01-21 06:35:58 +00:00
{% extends "common-content.html" %}
{% block content_js_media %}
2023-01-27 23:11:10 +00:00
{% include "comments/media-js.html" %}
{% include "actionbar/media-js.html" %}
2020-01-21 06:35:58 +00:00
{% endblock %}
{% block content_media %}
2023-01-27 23:11:10 +00:00
{% include "comments/media-css.html" %}
2020-01-21 06:35:58 +00:00
{% endblock %}
{% block header %}
2023-01-27 23:11:10 +00:00
<div style="float:right">
{% if perms.judge.change_problem %}
[<a href="{{ url('admin:judge_problem_change', problem.id) }}">{{ _('Edit') }}</a>]
{% endif %}
</div>
2020-01-21 06:35:58 +00:00
{% endblock %}
{% block body %}
2023-01-27 23:11:10 +00:00
<div class="content-description">
{% if not has_solved_problem %}
<div class="alert alert-danger">{{ _('Remember to use this editorial <b>only</b> when stuck, and <b>not to copy-paste code from it</b>. Please be respectful to the problem author and editorialist. <br><br> <b>Submitting an official solution before solving the problem yourself is a bannable offence.</b>') }}</div>
{% endif %}
{% with authors=solution.authors.all() %}
{% if authors %}
<p>Authors: {{ link_users(authors) }}</p>
{% endif %}
{% endwith %}
2024-05-29 05:14:42 +00:00
{% cache 86400 'solution_content' solution.id %}
{{ solution.content|markdown(lazy_load=True)|reference|str|safe }}
{% endcache %}
2023-01-27 23:11:10 +00:00
</div>
<hr>
{% include "actionbar/list.html" %}
<br>
{% include "comments/list.html" %}
2020-01-21 06:35:58 +00:00
{% endblock %}
{% block bodyend %}
2023-01-27 23:11:10 +00:00
{% include "comments/math.html" %}
2020-01-21 06:35:58 +00:00
{% endblock %}