style: add flexbox layout for job action buttons in dashboard template
Build / Build and Push (push) Successful in 13s
Build / Build and Push (push) Successful in 13s
This commit is contained in:
@@ -61,12 +61,16 @@
|
|||||||
let actions = '';
|
let actions = '';
|
||||||
if (job.status === 'pending') {
|
if (job.status === 'pending') {
|
||||||
actions = `
|
actions = `
|
||||||
|
<div style="display: flex; gap: 0.5rem; flex-wrap: wrap;">
|
||||||
<button class="btn btn-sm btn-outline" onclick="bumpJob(${job.id})">Bump</button>
|
<button class="btn btn-sm btn-outline" onclick="bumpJob(${job.id})">Bump</button>
|
||||||
<button class="btn btn-sm btn-danger" onclick="cancelJob(${job.id})">Cancel</button>
|
<button class="btn btn-sm btn-danger" onclick="cancelJob(${job.id})">Cancel</button>
|
||||||
|
</div>
|
||||||
`;
|
`;
|
||||||
} else if (job.status === 'processing') {
|
} else if (job.status === 'processing') {
|
||||||
actions = `
|
actions = `
|
||||||
|
<div style="display: flex; gap: 0.5rem; flex-wrap: wrap;">
|
||||||
<button class="btn btn-sm btn-danger" onclick="cancelJob(${job.id})">Cancel</button>
|
<button class="btn btn-sm btn-danger" onclick="cancelJob(${job.id})">Cancel</button>
|
||||||
|
</div>
|
||||||
`;
|
`;
|
||||||
} else if (job.status === 'failed') {
|
} else if (job.status === 'failed') {
|
||||||
// Retry not fully implemented in API yet, but could re-enqueue
|
// Retry not fully implemented in API yet, but could re-enqueue
|
||||||
|
|||||||
Reference in New Issue
Block a user