Przeglądaj źródła

added asset() call to fix incorrect paths for images representing boolean values in the default list

deoxxa 14 lat temu
rodzic
commit
100b5e5538
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Resources/views/CRUD/list_boolean.html.twig

+ 1 - 1
Resources/views/CRUD/list_boolean.html.twig

@@ -11,5 +11,5 @@ file that was distributed with this source code.
 
 {% extends 'SonataAdminBundle:CRUD:base_list_field.html.twig' %}
 
-{% block field%}<img src="/bundles/sonataadmin/famfamfam/{% if value %}accept{% else %}exclamation{% endif %}.png" />{% endblock %}
+{% block field%}<img src="{{ asset('bundles/sonataadmin/famfamfam/') }}{% if value %}accept{% else %}exclamation{% endif %}.png" />{% endblock %}