From 1d86146f64dd665b7ad5b6c90178fec2072795e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ibhear=20=C3=93=20hAnluain?= Date: Fri, 29 Mar 2024 16:44:12 +0000 Subject: [PATCH] Show next_try only for the deferred worker job. --- src/Module/Admin/Queue.php | 1 + view/templates/admin/queue.tpl | 4 ++-- view/theme/frio/templates/admin/queue.tpl | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Module/Admin/Queue.php b/src/Module/Admin/Queue.php index e309bfc647..dafa278e79 100644 --- a/src/Module/Admin/Queue.php +++ b/src/Module/Admin/Queue.php @@ -80,6 +80,7 @@ class Queue extends BaseAdmin '$next_try_header' => DI::l10n()->t('Next Try'), '$prio_header' => DI::l10n()->t('Priority'), '$info' => $info, + '$status' => $status, '$entries' => $r, ]); } diff --git a/view/templates/admin/queue.tpl b/view/templates/admin/queue.tpl index c34f92f2cd..5ac38490d3 100644 --- a/view/templates/admin/queue.tpl +++ b/view/templates/admin/queue.tpl @@ -8,7 +8,7 @@ {{$command_header}} {{$param_header}} {{$created_header}} - {{$next_try_header}} + {{if ($status==='deferred') }}{{$next_try_header}}{{/if}} {{$prio_header}} {{foreach $entries as $e}} @@ -17,7 +17,7 @@ {{$e.command}} {{$e.parameter}} {{$e.created}} - {{$e.next_try}} + {{if ($status==='deferred') }}{{$e.next_try}}{{/if}} {{$e.priority}} {{/foreach}} diff --git a/view/theme/frio/templates/admin/queue.tpl b/view/theme/frio/templates/admin/queue.tpl index 8abc63d2ec..f9aaaa0e96 100644 --- a/view/theme/frio/templates/admin/queue.tpl +++ b/view/theme/frio/templates/admin/queue.tpl @@ -8,7 +8,7 @@ {{$command_header}} {{$param_header}} {{$created_header}} - {{$next_try_header}} + {{if ($status==='deferred') }}{{$next_try_header}}{{/if}} {{$prio_header}} {{foreach $entries as $e}} @@ -17,7 +17,7 @@ {{$e.command}} {{$e.parameter}} {{$e.created}} - {{$e.next_try}} + {{if ($status==='deferred') }}{{$e.next_try}}{{/if}} {{$e.priority}} {{/foreach}}