{% set operaciones = {
'operacionGestion': 'link_action_show_operacion_gestion',
'operacionCompra': 'link_action_show_operacion_compra',
'operacionVenta': 'link_action_show_operacion_venta'
} %}
{#{% set classSeparator = 'separator-right' %}#}
{# Determinar el reloj segĂșn el tipo de object #}
{% if instanceof(object, '\\App\\Entity\\Reloj') %}
{% set reloj = object %}
{% elseif object.reloj is defined %}
{% set reloj = object.reloj %}
{% else %}
{% set reloj = null %}
{% endif %}
{#{% if instanceof(object, "\\App\\Entity\\ActividadAbstract") %}#}
{# {% set classSeparator = '' %}#}
{#{% endif %}#}
{% if reloj %}
{% for prop, title in operaciones %}
{% if attribute(reloj, prop) is defined and attribute(reloj, prop) %}
{% set operacion = attribute(reloj, prop) %}
{% if operacion is not null and operacion.deletedAt is null %}
{% set kebab = prop|pregreplace('/([a-z])([A-Z])/', '$1-$2')|lower %}
<li id="action-show-{{ kebab }}" class="action">
<a class="sonata-action-element"
href="{{ url('admin_app_operacion_edit', admin.getEntitySubClass is defined ? {'id': operacion.id, 'subclass': admin.getEntitySubClass} : {'id': operacion.id}) }}"
title="{{ title|trans({}, 'SonataAdminBundle') }}">
<i class="perseo-icon-show-{{ kebab }} perseo-icon-navbar-prometeo { loop.first ? classSeparator : '' } "></i>
</a>
</li>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}