1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 07:25:19 +02:00

Added html section for settings and logout buttons.

This commit is contained in:
Claude Ayitey 2024-01-03 19:44:26 +00:00
parent 49b1f738bc
commit 56abc8d36a

View file

@ -43,11 +43,17 @@
</li> </li>
</ul> </ul>
</li> </li>
<li class="mt-auto -mx-6"> <div data-toggle-target="menu" class="hidden">
<a href="#" class="flex items-center px-6 py-3 text-sm font-semibold leading-6 text-gray-900 gap-x-4 hover:bg-gray-50"> <%= link_to "#", class:"flex p-2 text-sm font-semibold leading-6 text-gray-600 rounded-md group gap-x-3 px-4" do %>
<span class="sr-only">Your profile</span> <%= image_tag 'settings.svg', size: "24" %> Settings
<span aria-hidden="true"><%= current_user.email %></span> <% end %>
</a> <%= link_to destroy_user_session_path, class:"text-red-500 flex p-2 text-sm font-semibold leading-6 text-gray-600 rounded-md group gap-x-3 px-4" do %>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9" />
</svg>
Logout
<% end %>
</div>
</li> </li>
</ul> </ul>
</nav> </nav>