history_button.html.twig 533 B

12345678910111213141516
  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 admin.hasroute('history') and admin.id(object) and admin.isGranted('EDIT', object) %}
  8. <a class="sonata-action-element" href="{{ admin.generateObjectUrl('history', object) }}">
  9. <i class="fa fa-archive"></i>
  10. {{ 'link_action_history'|trans({}, 'SonataAdminBundle') }}</a>
  11. {% endif %}