forked from rc/aircox
templates/item: display draft status when episode is unpublished
This commit is contained in:
parent
cd67b0ac6f
commit
c6fe3a5a34
|
@ -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 %}">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user