templates

This commit is contained in:
masnn committed 2020-04-03 18:52:20 +08:00
1 parent d5b1f623f8
commit 7fa4a58abe
112 files changed
+5726

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
{% if tdoc %}
{% if tdoc['doc_type'] == vj4.model.document.TYPE_CONTEST %}
{% include "partials/problem_sidebar_contest.html" %}
{% with owner_udoc=udoc, owner_dudoc=dudoc %}
{% include "partials/contest_sidebar.html" %}
{% endwith %}
{% else %}
{% include "partials/problem_sidebar_homework.html" %}
{% with owner_udoc=udoc, owner_dudoc=dudoc %}
{% include "partials/homework_sidebar.html" %}
{% endwith %}
{% endif %}
{% else %}
{% include "partials/problem_sidebar_normal.html" %}
{% endif %}