Add possibility to have an unknown publication date

This commit is contained in:
Théophile Bastian 2017-10-17 16:29:42 +02:00
parent 32716892d7
commit e6cdf40fdc
3 changed files with 31 additions and 0 deletions

View file

@ -16,7 +16,11 @@ Millésime {{ year_range }}
<table class="publication-list">
{% for bocal in publications %}
<tr class="publication-entry">
{% if bocal.unknown_date %}
<td class="publication-date">Date inconnue</td>
{% else %}
<td class="publication-date">{{ bocal.date | date:"d/m/Y" }}</td>
{% endif %}
<td class="publication-body">
<a href="{{ bocal.url }}" title="Lire le BOcal !">{{ bocal }}</a>