{% extends "madga/studio/base.html" %} {% load i18n static madga_studio_tags %} {% block title %}{% if post %}{{ post.title|default:_("Edit post") }}{% else %}{% trans "New post" %}{% endif %} · Studio{% endblock %} {% block breadcrumbs %} {% trans "Posts" %} / {% if post %}{{ post.title|default:_("Untitled") }}{% else %}{% trans "New post" %}{% endif %} {% endblock %} {% block head_extra %} {# Editor.js scripts in so they parse before our init runs. #} {# Note: 'link' inline tool is built into Editor.js core — referenced by string in inlineToolbar. #} {% endblock %} {% block content %} {% include "madga/studio/components/editor_toolbar_init.html" %}
{% csrf_token %}
{% trans "No changes" %}
{% if post and post.slug %} {% studio_icon "eye" size=14 stroke=2 %} {% trans "Preview" %} {% if post.status == 'published' %} {% studio_icon "external" size=12 stroke=2 %} {% trans "Live" %} {% endif %} {% else %} {% trans "Preview" %} {% endif %} {% if post and post.status == 'published' and broadcast_publishers %} {% endif %}
{% if post and post.status == 'published' and broadcast_publishers %} {% include "madga/studio/components/broadcast_drawer.html" with post=post publishers=broadcast_publishers %} {% endif %}
{# Insert-block toolbar: persistent, WordPress-friendly. #} {% include "madga/studio/components/editor_toolbar.html" with include_embed=True %}
{% if form.body.errors %}
{{ form.body.errors }}
{% endif %} {# Word count + reading time #}
0 {% trans "words" %} · ~1 {% trans "min read" %}
{% endblock %}