Cloned DMOJ
This commit is contained in:
parent
f623974b58
commit
49dc9ff10c
513 changed files with 132349 additions and 39 deletions
5
templates/flatpages/admin_link.html
Normal file
5
templates/flatpages/admin_link.html
Normal 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 %}
|
15
templates/flatpages/default.html
Normal file
15
templates/flatpages/default.html
Normal 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 %}
|
14
templates/flatpages/markdown.html
Normal file
14
templates/flatpages/markdown.html
Normal 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 %}
|
9
templates/flatpages/markdown_math.html
Normal file
9
templates/flatpages/markdown_math.html
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue