Skip to content

Commit

Permalink
Fixed incorrect image url in boolean when symfony configured to use a…
Browse files Browse the repository at this point in the history
…sset_version
  • Loading branch information
Daniel Holmes committed May 23, 2011
1 parent 4401f34 commit cf52492
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Resources/views/CRUD/list_boolean.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@ file that was distributed with this source code.

{% extends 'SonataAdminBundle:CRUD:base_list_field.html.twig' %}

{% block field%}<img src="{{ asset('bundles/sonataadmin/famfamfam/') }}{% if value %}accept{% else %}exclamation{% endif %}.png" />{% endblock %}

{% block field %}
{% spaceless %}
{% if value %}
<img src="{{ asset('bundles/sonataadmin/famfamfam/accept.png') }}" />
{% else %}
<img src="{{ asset('bundles/sonataadmin/famfamfam/exclamation.png') }}" />
{% endif %}
{% endspaceless %}
{% endblock %}

0 comments on commit cf52492

Please sign in to comment.