templates/item: display draft status when episode is unpublished

This commit is contained in:
Chris Tactic 2024-11-07 07:34:39 +01:00
parent cd67b0ac6f
commit c6fe3a5a34

View File

@ -20,7 +20,12 @@
{% if object|model_name == "Episode" %} {% if object|model_name == "Episode" %}
<div class="episode-date"> <div class="episode-date">
{{ object.pub_date|date:"d/m/Y" }}<Br/> {% if object.status %}
{{ object.pub_date|date:"d/m/Y" }}
{% else %}
{% trans "Draft" %}
{% endif %}
<br/>
</div> </div>
{% endif %} {% endif %}
<a href="{{ url|escape }}" class="heading title {% block title-class %}{% endblock %}"> <a href="{{ url|escape }}" class="heading title {% block title-class %}{% endblock %}">