display last backup timestamp and improve router group display.

This commit is contained in:
Eduardo Silva 2025-06-16 17:06:43 -03:00
parent a1ad01cbc8
commit d593e47239
2 changed files with 26 additions and 7 deletions

View file

@ -297,6 +297,9 @@
"info": true,
"autoWidth": false,
"responsive": true,
"columnDefs": [
{ "orderable": false, "targets": [ 0, -1 ] }
]
});
});
$('.datatables-with-export').show();

View file

@ -17,13 +17,14 @@
<table class="table table-hover datatables-no-export">
<thead>
<tr>
<th>Select</th>
<th></th>
<th>Name</th>
<th>Type</th>
<th>Version</th>
<th>Address</th>
<th>Status</th>
<th>Backup</th>
<th>Last Backup</th>
<th>Groups</th>
<th>Auth</th>
<th></th>
@ -61,7 +62,22 @@
{% endif %}
{% endif %}
</td>
<td>{{ router.routergroup_set.count }}</td>
<td>
{% if router.router_type != 'monitoring' and router.routerstatus.last_backup %}
{{ router.routerstatus.last_backup|date:"Y-m-d H:i:s" }}
{% else %}
---
{% endif %}
</td>
<td>
{% if router.routergroup_set.exists %}
{% for group in router.routergroup_set.all %}
{{ group.name }}{% if not forloop.last %}, {% endif %}
{% endfor %}
{% else %}
---
{% endif %}
</td>
<td class="min-width">
{% if router.router_type != 'monitoring' %}
{% if router.ssh_key %}