8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 15:33:45 +00:00

Handle empty dates in machine history results view

This commit is contained in:
Jean-Romain Garnier 2020-04-22 18:45:43 +02:00 committed by klafyvel
parent f051d5c09c
commit e76a215579

View file

@ -48,8 +48,20 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</td>
<td>{{ event.ipv4 }}</td>
<td>{{ event.mac }}</td>
<td>{{ event.start_date }}</td>
<td>{{ event.end_date }}</td>
<td>
{% if event.start_date %}
{{ event.start_date }}
{% else %}
{% trans "Unknown" %}
{% endif %}
</td>
<td>
{% if event.start_date %}
{{ event.end_date }}
{% else %}
{% trans "Now" %}
{% endif %}
</td>
<td>{{ event.comment }}</td>
</tr>
{% endfor %}