vendor/sonata-project/admin-bundle/src/Resources/views/Button/history_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('history', object)
  10.     and admin.hasRoute('history')
  11. %}
  12.     <li>
  13.         <a class="sonata-action-element" href="{{ admin.generateObjectUrl('history', object) }}">
  14.             <i class="fas fa-archive" aria-hidden="true"></i>
  15.             {{ 'link_action_history'|trans({}, 'SonataAdminBundle') }}
  16.         </a>
  17.     </li>
  18. {% endif %}