forked from rc/aircox
templates/item: display draft status when episode is unpublished
This commit is contained in:
parent
cd67b0ac6f
commit
c6fe3a5a34
|
@ -19,9 +19,14 @@
|
|||
<div class="media-content flex-column">
|
||||
|
||||
{% if object|model_name == "Episode" %}
|
||||
<div class="episode-date">
|
||||
{{ object.pub_date|date:"d/m/Y" }}<Br/>
|
||||
</div>
|
||||
<div class="episode-date">
|
||||
{% if object.status %}
|
||||
{{ object.pub_date|date:"d/m/Y" }}
|
||||
{% else %}
|
||||
{% trans "Draft" %}
|
||||
{% endif %}
|
||||
<br/>
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="{{ url|escape }}" class="heading title {% block title-class %}{% endblock %}">
|
||||
{% block title %}{{ title|default:"" }}{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user