8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 07:02:26 +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 Gabriel Detraz
parent 8d25dd3731
commit a03047a6ae

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 %}