diff --git a/src/Controller/MessengerMonitorController.php b/src/Controller/MessengerMonitorController.php index ac1eefc..75860f0 100644 --- a/src/Controller/MessengerMonitorController.php +++ b/src/Controller/MessengerMonitorController.php @@ -128,7 +128,7 @@ public function detail(string $id, ViewHelper $helper): Response #[Route('/transport/{name}', name: 'zenstruck_messenger_monitor_transport', defaults: ['name' => null])] public function transports( ViewHelper $helper, - + Request $request, ?string $name = null, ): Response { $countable = $helper->transports->filter()->countable(); @@ -145,6 +145,7 @@ public function transports( 'helper' => $helper, 'transports' => $countable, 'transport' => $helper->transports->get($name), + 'limit' => $request->query->getInt('limit', 50), ]); } diff --git a/templates/transport.html.twig b/templates/transport.html.twig index 415619a..446e092 100644 --- a/templates/transport.html.twig +++ b/templates/transport.html.twig @@ -49,6 +49,17 @@ {% else %} + {% set queuedMessages = transport.list(limit) %} + + {% if queuedMessages|length == limit %} +
{{ queued.message.shortName }} |