{% if admin.hasAccess('show', object) and admin.hasRoute('show') %}
{% set button_content = sonata_config.getOption('list_action_button_content') %}
{% if object.valoracion is not empty %}
{% set modalAttr = '' %}
{% for attr, value in actions.link_parameters['modal-attr']|default([]) %}
{% set modalAttr = modalAttr ~ ' ' ~ attr ~ ' = "' ~ value ~ '"'%}
{% endfor %}
<a
href="{{ url('admin_app_valoracion_edit', {id: object.valoracion.id }) }}"
class="view_link modal-show"
title="{{ 'action_show'|trans({}, 'SonataAdminBundle') }}"
{{ modalAttr | raw }}
>
{% if button_content == 'icon' or button_content == 'all' %}
<i class="fas fa-eye" aria-hidden="true"></i>
{% endif %}
{% if button_content == 'text' or button_content == 'all' %}
{{ 'action_show'|trans({}, 'SonataAdminBundle') }}
{% else %}
<span class="sr-only">
{{ 'action_show'|trans({}, 'SonataAdminBundle') }}
</span>
{% endif %}
</a>
{% endif %}
{% endif %}