Show next_try only for the deferred worker job.

This commit is contained in:
Éibhear Ó hAnluain 2024-03-29 16:44:12 +00:00
parent 751ffe6bc6
commit 1d86146f64
No known key found for this signature in database
GPG key ID: D124FE9CF2177106
3 changed files with 5 additions and 4 deletions

View file

@ -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,
]);
}

View file

@ -8,7 +8,7 @@
<th>{{$command_header}}</th>
<th>{{$param_header}}</th>
<th>{{$created_header}}</th>
<th>{{$next_try_header}}</th>
{{if ($status==='deferred') }}<th>{{$next_try_header}}</th>{{/if}}
<th>{{$prio_header}}</th>
</tr>
{{foreach $entries as $e}}
@ -17,7 +17,7 @@
<td>{{$e.command}}</td>
<td>{{$e.parameter}}</td>
<td>{{$e.created}}</td>
<td>{{$e.next_try}}</td>
{{if ($status==='deferred') }}<td>{{$e.next_try}}</td>{{/if}}
<td>{{$e.priority}}</td>
</tr>
{{/foreach}}

View file

@ -8,7 +8,7 @@
<th>{{$command_header}}</th>
<th>{{$param_header}}</th>
<th>{{$created_header}}</th>
<th>{{$next_try_header}}</th>
{{if ($status==='deferred') }}<th>{{$next_try_header}}</th>{{/if}}
<th>{{$prio_header}}</th>
</tr>
{{foreach $entries as $e}}
@ -17,7 +17,7 @@
<td>{{$e.command}}</td>
<td>{{$e.parameter}}</td>
<td>{{$e.created}}</td>
<td>{{$e.next_try}}</td>
{{if ($status==='deferred') }}<td>{{$e.next_try}}</td>{{/if}}
<td>{{$e.priority}}</td>
</tr>
{{/foreach}}