Browse Source

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

deoxxa 14 năm trước cách đây
mục cha
commit
100b5e5538
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 %}