0.12.1: jobs table first, count in the title, clear button below the list

This commit is contained in:
Claw committed 2026-11-17 21:40:50 +01:00
1 parent a1b4e884da
commit 98793ed635
3 files changed
+10 -8

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"appname": "VM Manager", "appname": "VM Manager",
"version": "0.12.0", "version": "0.12.1",
"rootfolder": "/mnt/Daten/extensions/vmmngr", "rootfolder": "/mnt/Daten/extensions/vmmngr",
"vm_source": "auto", "vm_source": "auto",
"bridges": ["ix0bridge"], "bridges": ["ix0bridge"],
+8 -6
View File
@@ -63,11 +63,7 @@ vmm_nav('jobs');
<br /> <br />
<?php endif; ?> <?php endif; ?>
<p>
<button type="submit" class="formbtn" name="act" value="clear_jobs"
onclick="return confirm('Remove all finished jobs? Running jobs are kept.')"><?=gettext('Clear finished jobs');?></button>
<span style="opacity:.75;margin-left:8px;"><?=gettext('Retention keeps the newest %d jobs automatically (Configuration).', (int)(vmm_config()['job_keep'] ?? 100));?></span>
</p>
<table class="area_data_selection" style="width:100%;border-collapse:collapse;"> <table class="area_data_selection" style="width:100%;border-collapse:collapse;">
<colgroup> <colgroup>
@@ -79,7 +75,7 @@ vmm_nav('jobs');
<col style="width:30%"> <col style="width:30%">
</colgroup> </colgroup>
<thead> <thead>
<?php html_separator2(); html_titleline2(gettext('All jobs'), 6); ?> <?php html_separator2(); html_titleline2(sprintf('%s (%d)', gettext('All jobs'), count($jobs)), 6); ?>
<tr> <tr>
<th class="lhell"><?=gettext('Job');?></th> <th class="lhell"><?=gettext('Job');?></th>
<th class="lhell"><?=gettext('Action');?></th> <th class="lhell"><?=gettext('Action');?></th>
@@ -107,5 +103,11 @@ vmm_nav('jobs');
</tbody> </tbody>
</table> </table>
<p>
<button type="submit" class="formbtn" name="act" value="clear_jobs"
onclick="return confirm('Remove all finished jobs? Running jobs are kept.')"><?=gettext('Clear finished jobs');?></button>
<span style="opacity:.75;margin-left:8px;"><?=gettext('Retention keeps the newest %d jobs automatically (Configuration).', (int)(vmm_config()['job_keep'] ?? 100));?></span>
</p>
</td></tr></tbody></table><?php include 'formend.inc'; ?></form> </td></tr></tbody></table><?php include 'formend.inc'; ?></form>
<?php include 'fend.inc'; ?> <?php include 'fend.inc'; ?>
+1 -1
View File
@@ -1 +1 @@
0.12.0 0.12.1