From ce3a0815e1275ba9977798eddf28c28cee670a79 Mon Sep 17 00:00:00 2001 From: Camilo <292738+clsource@users.noreply.github.com> Date: Fri, 4 Nov 2022 10:11:32 -0300 Subject: [PATCH] refactor: improved user button (#100) --- .../templates/layout/_user_menu.html.heex | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/lib/rauversion_web/templates/layout/_user_menu.html.heex b/lib/rauversion_web/templates/layout/_user_menu.html.heex index e9bbce1f..eb3e837f 100644 --- a/lib/rauversion_web/templates/layout/_user_menu.html.heex +++ b/lib/rauversion_web/templates/layout/_user_menu.html.heex @@ -6,17 +6,17 @@ <%= live_redirect to: "/", class: "flex items-center space-x-3 text-white sm:text-2xl text-sm font-extrabold" do %> - RAUVERSION + RAUVERSION <% #= RauversionWeb.Gettext |> Gettext.get_locale %> <% #= image_tag url_for(current_user.avatar), class: "h-8 w-auto" if current_user&.avatar&.persisted? %> <% end %>
- - - <%= @current_user.username || @current_user.email %> - +
<%= live_redirect gettext("My Purchases"), to: "/purchases/tickets", class: "block px-4 py-2 text-sm text-gray-700 dark:text-gray-300" %> - <%= live_redirect gettext("Settings"), - to: "/users/settings", + <%= live_redirect gettext("Settings"), + to: "/users/settings", class: "block px-4 py-2 text-sm text-gray-700 dark:text-gray-300" %>
Support License <%= link gettext("Log out"), to: Routes.user_session_path(@conn, :delete), method: :delete, class: "block px-4 py-2 text-sm text-gray-700 dark:text-gray-300" %> - +
<%= new_locale @conn, :en, "EN", "block px-4 py-2 text-sm text-gray-700 dark:text-gray-300" %> <%= new_locale @conn, :es, "ES", "block px-4 py-2 text-sm text-gray-700 dark:text-gray-300" %> @@ -143,13 +143,13 @@
- -
@@ -203,15 +203,15 @@ <% end %> <%= live_redirect gettext("My Purchases"), to: "/purchases/tickets", class: "block px-4 py-2 text-sm text-gray-700 dark:text-gray-300" %> - <%= live_redirect gettext("Settings"), - to: "/users/settings", + <%= live_redirect gettext("Settings"), + to: "/users/settings", class: "block px-4 py-2 text-sm text-gray-700 dark:text-gray-300" %>
Support License <%= link gettext("Log out"), to: Routes.user_session_path(@conn, :delete), method: :delete, class: "block px-4 py-2 text-sm text-gray-700 dark:text-gray-300" %> - +
<%= new_locale @conn, :en, "EN", "block px-4 py-2 text-sm text-gray-700 dark:text-gray-300" %> <%= new_locale @conn, :es, "ES", "block px-4 py-2 text-sm text-gray-700 dark:text-gray-300" %> @@ -227,5 +227,5 @@
- - \ No newline at end of file + +