diff --git a/CHANGELOG_list_api_call_route_url.md b/CHANGELOG_list_api_call_route_url.md new file mode 100644 index 0000000..0d8e80e --- /dev/null +++ b/CHANGELOG_list_api_call_route_url.md @@ -0,0 +1,2 @@ +### Added +- `list_api_call_route_url.html.twig` template to reduce the size of the url on `AbstractApiCallAdmin` diff --git a/src/Admin/Monitoring/AbstractApiCallAdmin.php b/src/Admin/Monitoring/AbstractApiCallAdmin.php index d2a7af5..1720524 100644 --- a/src/Admin/Monitoring/AbstractApiCallAdmin.php +++ b/src/Admin/Monitoring/AbstractApiCallAdmin.php @@ -99,7 +99,10 @@ protected function configureListFields(ListMapper $list): void 'template' => '@SmartSonata/admin/base_field/list_api_call_status_code.html.twig', ]) ->add('method', null, ['label' => 'label.method']) - ->add('routeUrl', null, ['label' => 'label.route_url']) + ->add('routeUrl', null, [ + 'label' => 'label.route_url', + 'template' => '@SmartSonata/admin/base_field/list_api_call_route_url.html.twig', + ]) ->add('durationAsString', null, ['label' => 'label.duration']) ->add('summary', null, [ 'label' => 'label.summary', diff --git a/templates/admin/base_field/list_api_call_route_url.html.twig b/templates/admin/base_field/list_api_call_route_url.html.twig new file mode 100644 index 0000000..99fd817 --- /dev/null +++ b/templates/admin/base_field/list_api_call_route_url.html.twig @@ -0,0 +1,6 @@ +{% extends '@SonataAdmin/CRUD/base_list_field.html.twig' %} +{% block field %} +