mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 11:53:12 +00:00
Handle empty dates in machine history results view
This commit is contained in:
parent
8d25dd3731
commit
a03047a6ae
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