Cloned DMOJ

This commit is contained in:
thanhluong 2020-01-21 15:35:58 +09:00
parent f623974b58
commit 49dc9ff10c
513 changed files with 132349 additions and 39 deletions

View file

@ -0,0 +1,5 @@
{% if perms.flatpages.change_flatpage %}
<div class="title-line-action">
[<a href="{{ url('admin:flatpages_flatpage_change', flatpage.id) }}">{{ _('Edit') }}</a>]
</div>
{% endif %}

View file

@ -0,0 +1,15 @@
{% extends "base.html" %}
{% block title %}{{ flatpage.title }} - {{ SITE_LONG_NAME }}{% endblock %}
{% block og_title %}
<meta property="og:title" content="{{ flatpage.title }} - {{ SITE_LONG_NAME }}">
{% endblock %}
{% block content_title %}{{ flatpage.title }}{% endblock %}
{% block header %}
{% include "flatpages/admin_link.html" %}
{% endblock %}
{% block body %}
{{ render_django(flatpage.content) }}
{% endblock %}

View file

@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block title %}{{ flatpage.title }} - {{ SITE_LONG_NAME }}{% endblock %}
{% block og_title %}
<meta property="og:title" content="{{ flatpage.title }} - {{ SITE_LONG_NAME }}">
{% endblock %}
{% block content_title %}{{ flatpage.title }}{% endblock %}
{% block header %}{% include "flatpages/admin_link.html" %}{% endblock %}
{% block body %}
<div class="content-description">{{ flatpage.content|markdown('solution')|reference|str|safe }}</div>
{% endblock %}

View file

@ -0,0 +1,9 @@
{% extends "flatpages/markdown.html" %}
{% block body %}
<div class="content-description">{{ flatpage.content|markdown('solution', MATH_ENGINE)|reference }}</div>
{% endblock %}
{% block bodyend %}
{% if REQUIRE_JAX %}{% include "mathjax-load.html" %}{% endif %}
{% endblock %}