54 lines
1.7 KiB
HTML
54 lines
1.7 KiB
HTML
|
{% extends "base.html" %}
|
||
|
|
||
|
{% block js_media %}
|
||
|
{% include "comments/media-js.html" %}
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block media %}
|
||
|
{% include "comments/media-css.html" %}
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block header %}
|
||
|
{% if perms.judge.change_blogpost %}
|
||
|
<div class="title-line-action">[<a href="{{ url('admin:judge_blogpost_change', post.id) }}">{{ _('Edit') }}</a>]
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block body %}
|
||
|
<div class="post-full">
|
||
|
<div class="time">
|
||
|
{% with authors=post.authors.all() %}
|
||
|
{% if authors %}
|
||
|
<span class="post-authors">{{ link_users(authors) }}</span>
|
||
|
{% endif %}
|
||
|
{% endwith %}
|
||
|
<span class="post-time">
|
||
|
{% trans time=post.publish_on|date(_("N j, Y, g:i a")) %}
|
||
|
posted on {{ time }}
|
||
|
{% endtrans %}
|
||
|
</span>
|
||
|
</div>
|
||
|
<div class="body content-description">
|
||
|
{% cache 86400 'post_content' post.id MATH_ENGINE %}
|
||
|
{{ post.content|markdown('blog', MATH_ENGINE)|reference|str|safe}}
|
||
|
{% endcache %}
|
||
|
</div>
|
||
|
</div>
|
||
|
<hr>
|
||
|
<span class="social">
|
||
|
{{ post_to_gplus(request, post, '<i class="fa fa-google-plus-square"></i>') }}
|
||
|
{{ post_to_facebook(request, post, '<i class="fa fa-facebook-official"></i>') }}
|
||
|
{{ post_to_twitter(request, SITE_NAME + ':', post, '<i class="fa fa-twitter"></i>') }}
|
||
|
</span>
|
||
|
{% include "comments/list.html" %}
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block bodyend %}
|
||
|
{{ super() }}
|
||
|
{% if REQUIRE_JAX %}
|
||
|
{% include "mathjax-load.html" %}
|
||
|
{% endif %}
|
||
|
{% include "comments/math.html" %}
|
||
|
{% endblock %}
|