vendor/sonata-project/admin-bundle/src/Resources/views/Button/show_button.html.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of the Sonata package.
  3. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  4. For the full copyright and license information, please view the LICENSE
  5. file that was distributed with this source code.
  6. #}
  7. {% if object is not null
  8.     and admin.id(object) is not null
  9.     and admin.hasAccess('show', object)
  10.     and admin.show|length > 0
  11.     and admin.hasRoute('show')
  12. %}
  13.     <li>
  14.         <a class="sonata-action-element" href="{{ admin.generateObjectUrl('show', object) }}">
  15.             <i class="fas fa-eye" aria-hidden="true"></i>
  16.             {{ 'link_action_show'|trans({}, 'SonataAdminBundle') }}
  17.         </a>
  18.     </li>
  19. {% endif %}