{% extends "layout_plan.html" %} {% block title %}{{ post.title }}{% endblock %} {% load i18n %} {% load filters %} {% block styles %} {% if post.css %} {% endif %} {% endblock %} {% block content %} {% with stages=stages %}{% include 'magplan/posts/_progress.html' %}{% endwith %}

{{ post }}

{% trans "edit" as edit_label %} {{ edit_label|capfirst }} {% if post.wp_id %} Загрузить в WordPress {% endif %}
{% csrf_token %}
Редактировать данные статьи
{% with form=meta_form %} {% include "magplan/posts/_form_meta.html" %} {% endwith %}
{% if post.authors.all|length > 0 %} {% trans "writes" %} {% for author in post.authors.all %} {% if perms.magplan.manage_authors %} {{ author }}{% if forloop.last is False %}, {% else %}.{% endif %} {% else %} {{ author }}{% if forloop.last is False %}, {% else %}.{% endif %} {% endif %} {% endfor %} {% else %} {% trans "no_author" %}. {% endif %} {% if perms.magplan.manage_authors %} {% trans "edits" %} {{ post.editor }} {% if forloop.last is False %}, {% else %}.{% endif %} {% else %} {% trans "edits" %} {{ post.editor }}{% if forloop.last is False %}, {% else %}.{% endif %} {% endif %}
Последнее изменение: {{ post.updated_at }}{% if post.last_updater %} от {{ post.last_updater }}{% endif %}
{% if post.issues.all|length > 0 %} {% for issue in post.issues.all %} {{ issue }}{% if forloop.last is False %}, {% else %} .{% endif %} {% endfor %} {% endif %} {% if post.section %}
{{ post.section.title }} {% endif %}
{{ post.description_html|safe }}

{% include 'magplan/posts/_stages.html' %} {% with post=post %}{% include 'magplan/posts/_paywall_alert.html' %}{% endwith %}
К комментариям ({{ post.comments.all|count_human_comments }})
{{ instance_chunk | safe }}
{% with pdfs=post.pdfs files=post.files hide_images=True hide_upload_form=True %} {% include 'magplan/posts/_attachments.html' %} {% endwith %}
{% if post.html %}
{{ post.html|safe }}
{% endif %} {# Support for generic comments template #} {% with comments=post.comments_ form=comment_form action_url=post|url_for_post_comments %} {% include 'magplan/partials/comments.html' %} {% endwith %} {% endblock %} {% block scripts %} {% endblock %}