소스 검색

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

deoxxa 14 년 전
부모
커밋
100b5e5538
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 %}