publication time displayed only if announces is published

This commit is contained in:
Serghei Mihai 2015-01-27 14:43:29 +01:00
parent 953e780e27
commit 92f0a45909
1 changed files with 2 additions and 0 deletions

View File

@ -10,9 +10,11 @@
{{ object.text|safe }}
</div>
<div class="pub_time">
{% if object.publication_time %}
{% blocktrans with pub_date=object.publication_time|date:'DATETIME_FORMAT' %}
Published on {{ pub_date }}
{% endblocktrans %}
{% endif %}
</div>
<div class="clear"></div>
</li>