better dashboard
This commit is contained in:
@@ -46,15 +46,15 @@
|
||||
<div class="relative">
|
||||
{% if app.user %}
|
||||
<button id="profile-menu" class="flex items-center space-x-2 focus:outline-none">
|
||||
<span class="text-white font-medium hidden md:inline">{{ profile.prenom }}</span>
|
||||
<img src="{{ profile.fileName ? asset('upload/image/profile/' ~ profile.fileName) : asset('upload/image/profile/default.png') }}"
|
||||
class="w-10 h-10 rounded-full border-2 border-white">
|
||||
<span class="text-white font-medium hidden md:inline">Profil</span>
|
||||
</button>
|
||||
<!-- Menu déroulant -->
|
||||
<div id="dropdown" class="hidden absolute right-0 mt-2 w-48 bg-white shadow-md rounded-lg">
|
||||
<ul class="py-2 text-gray-700">
|
||||
<li><a href="{{ path('profile_view', {'uuid': app.user.idParticipant}) }}" class="block px-4 py-2 hover:bg-gray-100">Mon profil</a></li>
|
||||
<li><a href="{{ path('dashboard', {'uuid': app.user.idParticipant}) }}" class="block px-4 py-2 hover:bg-gray-100">Dashboard</a></li>
|
||||
{# <li><a href="{{ path('dashboard', {'uuid': app.user.idParticipant}) }}" class="block px-4 py-2 hover:bg-gray-100">Dashboard</a></li>#}
|
||||
{% if 'ROLE_ADMIN' in app.user.roles %}
|
||||
<li><a href="{{ path('app_admin') }}" class="block px-4 py-2 hover:bg-gray-100">Administration</a></li>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user