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

+8 -6
View File
@@ -63,11 +63,7 @@ vmm_nav('jobs');
<br />
<?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;">
<colgroup>
@@ -79,7 +75,7 @@ vmm_nav('jobs');
<col style="width:30%">
</colgroup>
<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>
<th class="lhell"><?=gettext('Job');?></th>
<th class="lhell"><?=gettext('Action');?></th>
@@ -107,5 +103,11 @@ vmm_nav('jobs');
</tbody>
</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>
<?php include 'fend.inc'; ?>