Skip to content
Snippets Groups Projects
Commit 2724f3da authored by COLLINOT Baptiste's avatar COLLINOT Baptiste
Browse files

base de donnees et notifs admin

parent 26f0ae7c
Branches
No related tags found
1 merge request!71base de donnees et notifs admin
...@@ -10,10 +10,12 @@ ...@@ -10,10 +10,12 @@
</div> </div>
<p>{{ app.user.login }}</p> <p>{{ app.user.login }}</p>
{% if app.user.notifs|length > 0 %} {% if not is_granted('ROLE_ADMIN') %}
<a href="{{ path("app_notifications")}}"><img src={{asset('/img/notifs_non_lues.png')}} alt="logo profil" width="35px"/></a> {% if app.user.notifs|length > 0 %}
{% else %} <a href="{{ path("app_notifications")}}"><img src={{asset('/img/notifs_non_lues.png')}} alt="logo profil" width="35px"/></a>
<a href="{{ path("app_notifications")}}"><img src={{asset('/img/notifs.png')}} alt="logo profil" width="35px"/></a> {% else %}
<a href="{{ path("app_notifications")}}"><img src={{asset('/img/notifs.png')}} alt="logo profil" width="35px"/></a>
{% endif %}
{% endif %} {% endif %}
<a href="{{ path("app_modif_user")}}" ><img src={{asset('/img/bonhomme.png')}} alt="logo profil" width="50px"/></a> <a href="{{ path("app_modif_user")}}" ><img src={{asset('/img/bonhomme.png')}} alt="logo profil" width="50px"/></a>
{% if not is_granted('ROLE_ADMIN') %} {% if not is_granted('ROLE_ADMIN') %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment