templates/layout/partials/admin_toolbar.html.twig line 1

Open in your IDE?
  1. {#@todo / amélioration possible: mettre la barre aussi pour les modérateurs images voir +#}
  2. {% if app.user and is_granted('ROLE_SUPER_ADMIN') %}
  3.     <div class="global-information admin">
  4.         <span class="admin-title">Barre d'administration</span>
  5.         <span class="vertsep"></span>
  6.         <a href="{{ path('report_admin_list') }}">
  7.             Signalements
  8.             {% if adminCounter.report > 0 %}
  9.                 <span class="badge badge-primary">{{ adminCounter.report }}</span>
  10.             {% endif %}
  11.         </a>
  12.         <span class="vertsep"></span>
  13.         <a href="{{ path('moderate_picture_waiting_for_moderation') }}">
  14.             Images en attente de validation
  15.             {% if adminCounter.pictureWaitingForValidation > 0 %}
  16.                 <span class="badge badge-primary">{{ adminCounter.pictureWaitingForValidation }}</span>
  17.             {% endif %}
  18.         </a>
  19.         <span class="float-right">
  20.         <a class="admin" href="{{ path('sonata_admin_dashboard') }}" target="_blank">
  21.             <strong>{{ 'security.admin_dashboard'|trans }}</strong>
  22.         </a>
  23.         </span>
  24.     </div>
  25. {% endif %}
  26. {# impersonate toolbar #}
  27. {% if app.user and is_granted('ROLE_PREVIOUS_ADMIN') %}
  28.     <div class="global-information warning">
  29.         Attention : Vous êtes connecté sur le profil de l'utilisateur {{ app.user.name }}.
  30.         <a href="{{ path('sonata_admin_dashboard', {'_switch_user': '_exit'}) }}" class="font-weight-bold">
  31.             Revenir à mon profil
  32.         </a>
  33.     </div>
  34. {% endif %}