mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +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>{{ 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 %}
|
||||
|
|
Loading…
Reference in a new issue