mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 23:43:47 +00:00
Handle empty dates in machine history results view
This commit is contained in:
parent
f051d5c09c
commit
e76a215579
1 changed files with 14 additions and 2 deletions
|
@ -48,8 +48,20 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
</td>
|
</td>
|
||||||
<td>{{ event.ipv4 }}</td>
|
<td>{{ event.ipv4 }}</td>
|
||||||
<td>{{ event.mac }}</td>
|
<td>{{ event.mac }}</td>
|
||||||
<td>{{ event.start_date }}</td>
|
<td>
|
||||||
<td>{{ event.end_date }}</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>
|
<td>{{ event.comment }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue