Display the login name, instead of just "My Account"

This commit is contained in:
Jocelyn Fiat
2013-03-01 18:10:40 +01:00
parent 4a92612441
commit 65d8665a64

View File

@@ -92,7 +92,11 @@ feature -- Hooks
a_execution.add_to_main_menu (lnk)
end
if a_execution.authenticated then
if attached a_execution.user as u then
create lnk.make ("My Account (" + u.name + ")", "/user")
else
create lnk.make ("My Account", "/user")
end
a_menu_system.user_menu.extend (lnk)
create lnk.make ("Logout", "/user/logout")
a_menu_system.user_menu.extend (lnk)