NDOJ/templates/blog/blog.html

56 lines
1.9 KiB
HTML
Raw Normal View History

2020-12-28 05:45:58 +00:00
{% extends "base.html" %}
{% block js_media %}
{% include "comments/media-js.html" %}
2022-11-17 00:48:32 +00:00
{% include "actionbar/media-js.html" %}
2020-12-28 05:45:58 +00:00
{% endblock %}
{% block media %}
{% include "comments/media-css.html" %}
2022-11-17 00:48:32 +00:00
{% include "actionbar/media-css.html" %}
2020-12-28 05:45:58 +00:00
{% endblock %}
2022-08-28 02:45:28 +00:00
{% block title_row %}
{% endblock %}
{% block title_ruler %}
2020-12-28 05:45:58 +00:00
{% endblock %}
{% block body %}
<div class="post-full">
2022-08-28 02:45:28 +00:00
<div class="post-title">{{ title }}</div>
2020-12-28 05:45:58 +00:00
<div class="time">
{% with authors=post.authors.all() %}
{% if authors %}
<span class="post-authors">{{ link_users(authors) }}</span>
{% endif %}
{% endwith %}
<span class="post-time">
2021-12-27 08:22:48 +00:00
{% trans time=post.publish_on|date(_("N j, Y, g:i a")) %} posted on {{ time }}{% endtrans %}
2020-12-28 05:45:58 +00:00
</span>
2022-08-28 02:45:28 +00:00
{% if post.is_editable_by(request.user) %}
2022-10-17 05:12:20 +00:00
<span> [<a href="{{ url('admin:judge_blogpost_change', post.id) }}">{{ _('Edit') }}</a>]</span>
2022-10-17 18:06:50 +00:00
{% elif valid_user_to_show_edit %}
{% for org in valid_org_to_show_edit %}
2022-10-17 16:04:39 +00:00
<span> [<a href="{{ url('edit_organization_blog', org.id , org.slug , post.id) }}">{{ _('Edit in') }} {{org.slug}}</a>]</span>
2022-10-17 05:12:20 +00:00
{% endfor %}
2022-08-28 02:45:28 +00:00
{% endif %}
2020-12-28 05:45:58 +00:00
</div>
<div class="body content-description">
{% cache 86400 'post_content' post.id MATH_ENGINE %}
2022-10-25 04:59:04 +00:00
{{ post.content|markdown|reference|str|safe}}
2020-12-28 05:45:58 +00:00
{% endcache %}
</div>
2022-11-17 00:48:32 +00:00
{% include "actionbar/list.html" %}
2020-12-28 05:45:58 +00:00
</div>
2022-10-28 01:42:13 +00:00
<hr style="width: 60%; margin:4em auto;">
2020-12-28 05:45:58 +00:00
{% include "comments/list.html" %}
{% endblock %}
{% block bodyend %}
{{ super() }}
{% if REQUIRE_JAX %}
{% include "mathjax-load.html" %}
{% endif %}
{% include "comments/math.html" %}
{% endblock %}