mirror of
https://github.com/eduardogsilva/routerfleet.git
synced 2025-08-17 00:01:13 +02:00
display last backup timestamp and improve router group display.
This commit is contained in:
parent
a1ad01cbc8
commit
d593e47239
2 changed files with 26 additions and 7 deletions
|
@ -297,6 +297,9 @@
|
||||||
"info": true,
|
"info": true,
|
||||||
"autoWidth": false,
|
"autoWidth": false,
|
||||||
"responsive": true,
|
"responsive": true,
|
||||||
|
"columnDefs": [
|
||||||
|
{ "orderable": false, "targets": [ 0, -1 ] }
|
||||||
|
]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('.datatables-with-export').show();
|
$('.datatables-with-export').show();
|
||||||
|
|
|
@ -17,13 +17,14 @@
|
||||||
<table class="table table-hover datatables-no-export">
|
<table class="table table-hover datatables-no-export">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Select</th>
|
<th></th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
<th>Version</th>
|
<th>Version</th>
|
||||||
<th>Address</th>
|
<th>Address</th>
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
<th>Backup</th>
|
<th>Backup</th>
|
||||||
|
<th>Last Backup</th>
|
||||||
<th>Groups</th>
|
<th>Groups</th>
|
||||||
<th>Auth</th>
|
<th>Auth</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
@ -61,7 +62,22 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</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">
|
<td class="min-width">
|
||||||
{% if router.router_type != 'monitoring' %}
|
{% if router.router_type != 'monitoring' %}
|
||||||
{% if router.ssh_key %}
|
{% if router.ssh_key %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue