Front end tweaks

This commit is contained in:
amcmanu3 2024-05-26 18:21:38 -04:00
parent 772910dc6f
commit caf35a6de8

View File

@ -70,9 +70,9 @@
<tr class="rounded"> <tr class="rounded">
<th scope="col" style="width: 15%; min-width: 10px;">{{ translate('serverBackups', 'name', <th scope="col" style="width: 15%; min-width: 10px;">{{ translate('serverBackups', 'name',
data['lang']) }} </th> data['lang']) }} </th>
<th scope="col" style="width: 5%; min-width: 10px;">{{ translate('serverBackups', 'status', <th scope="col" style="width: 10%; min-width: 10px;">{{ translate('serverBackups', 'status',
data['lang']) }} </th> data['lang']) }} </th>
<th scope="col" style="width: 55%; min-width: 50px;">{{ translate('serverBackups', <th scope="col" style="width: 50%; min-width: 50px;">{{ translate('serverBackups',
'storageLocation', data['lang']) }}</th> 'storageLocation', data['lang']) }}</th>
<th scope="col" style="width: 10%; min-width: 50px;">{{ translate('serverBackups', <th scope="col" style="width: 10%; min-width: 50px;">{{ translate('serverBackups',
'maxBackups', data['lang']) }}</th> 'maxBackups', data['lang']) }}</th>
@ -101,7 +101,7 @@
</div> </div>
</td> </td>
<td id="{{backup.backup_location}}" class="type"> <td id="{{backup.backup_location}}" class="type">
<p>{{backup.backup_location}}</p> <p style="overflow: scroll;" class="no-scroll">{{backup.backup_location}}</p>
</td> </td>
<td id="{{backup.max_backups}}" class="trigger" style="overflow: scroll; max-width: 30px;"> <td id="{{backup.max_backups}}" class="trigger" style="overflow: scroll; max-width: 30px;">
<p>{{backup.max_backups}}</p> <p>{{backup.max_backups}}</p>
@ -145,6 +145,12 @@
<td id="{{backup.backup_name}}" class="id"> <td id="{{backup.backup_name}}" class="id">
<p>{{backup.backup_name}}</p> <p>{{backup.backup_name}}</p>
<br> <br>
<div id="{{backup.backup_id}}_status">
<button class="btn btn-outline-success backup-status" data-status="{{ backup.status }}"
data-Standby="{{ translate('serverBackups', 'standby', data['lang'])}}"
data-Failed="{{ translate('serverBackups', 'failed', data['lang'])}}"></button>
</div>
<br>
{% if backup.default %} {% if backup.default %}
<span class="badge-pill badge-outline-warning">{{ translate('serverBackups', 'default', <span class="badge-pill badge-outline-warning">{{ translate('serverBackups', 'default',
data['lang']) }}</span><small><button class="badge-pill badge-outline-info backup-explain" data['lang']) }}</span><small><button class="badge-pill badge-outline-info backup-explain"
@ -165,8 +171,8 @@
{% end %} {% end %}
<button data-backup={{ backup.backup_id }} data-toggle="tooltip" <button data-backup={{ backup.backup_id }} data-toggle="tooltip"
title="{{ translate('serverBackups', 'run', data['lang']) }}" title="{{ translate('serverBackups', 'run', data['lang']) }}"
class="btn btn-outline-warning test-socket"> class="btn btn-outline-warning test-socket backup_now_button">
<i class="fa-solid fa-vial"></i> <i class="fa-solid fa-forward"></i>
</button> </button>
</td> </td>
</tr> </tr>
@ -351,8 +357,8 @@
"searching": true, "searching": true,
"ordering": true, "ordering": true,
"info": true, "info": true,
"autoWidth": false, "autoWidth": true,
"responsive": true, "responsive": false,
}); });
$(".del_button").click(function () { $(".del_button").click(function () {