Created
February 6, 2022 19:57
-
-
Save andreaseriksson/c365d2af81cd4a971551f95c54637cc8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<.dropdown> | |
<:toggle> | |
<svg class="flex-shrink-0 w-6 h-6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> | |
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd" /> | |
</svg> | |
</:toggle> | |
<ul class="border shadow-xl menu bg-base-100 border-base-200 rounded-box w-52"> | |
<li> | |
<%= live_redirect "Settings", to: Routes.admin_setting_edit_path(@conn, :edit) %> | |
</li> | |
<li> | |
<%= link "Sign Out", to: Routes.admin_session_path(@conn, :delete), method: :delete %> | |
</li> | |
</ul> | |
</.dropdown> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment