Selaa lähdekoodia

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

deoxxa 14 vuotta sitten
vanhempi
commit
100b5e5538
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 %}