NDOJ/templates/blog/blog.html

49 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2020-12-28 05:45:58 +00:00
{% extends "base.html" %}
{% block js_media %}
2023-01-27 23:11:10 +00:00
{% include "comments/media-js.html" %}
{% include "actionbar/media-js.html" %}
2020-12-28 05:45:58 +00:00
{% endblock %}
{% block media %}
2023-01-27 23:11:10 +00:00
{% include "comments/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 %}
2023-01-27 23:11:10 +00:00
<div class="post-full">
<div class="post-title">{{ title }}</div>
<div class="time">
2024-04-13 22:02:54 +00:00
{% with authors=post.get_authors() %}
2023-01-27 23:11:10 +00:00
{% 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>
{% if post.is_editable_by(request.user) %}
<span> [<a href="{{ url('admin:judge_blogpost_change', post.id) }}">{{ _('Edit') }}</a>]</span>
{% endif %}
2024-04-23 20:36:51 +00:00
{% if editable_orgs %}
{% for org in editable_orgs %}
2023-01-27 23:11:10 +00:00
<span> [<a href="{{ url('edit_organization_blog', org.id , org.slug , post.id) }}">{{ _('Edit in') }} {{org.slug}}</a>]</span>
{% endfor %}
{% endif %}
2020-12-28 05:45:58 +00:00
</div>
2023-01-27 23:11:10 +00:00
<div class="body content-description">
2024-02-26 20:49:52 +00:00
{% cache 86400 'post_content' post.id %}
2023-01-27 23:11:10 +00:00
{{ post.content|markdown|reference|str|safe}}
{% endcache %}
</div>
{% include "actionbar/list.html" %}
</div>
<hr style="width: 60%; margin:4em auto;">
{% include "comments/list.html" %}
2020-12-28 05:45:58 +00:00
{% endblock %}