This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add retrieve and display user info from the store
- Loading branch information
hypernikao
committed
Aug 1, 2017
1 parent
e3522ae
commit f702b47
Showing
4 changed files
with
121 additions
and
21 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
<div class="logged-user-name" {{action 'toggleUserMenu'}} role="button" aria-haspopup="true" | ||
aria-expanded="{{_canDisplayMenu}}"> | ||
<a href="#" role="button" class="logged-user-name__link"> | ||
{{concat user.firstName ' ' user.lastName}} | ||
<span class="caret"></span> | ||
</a> | ||
</div> | ||
{{#if _user}} | ||
<div class="logged-user-name" {{action 'toggleUserMenu'}} role="button" aria-haspopup="true" | ||
aria-expanded="{{_canDisplayMenu}}"> | ||
<a href="#" role="button" class="logged-user-name__link"> | ||
{{concat _user.firstName ' ' _user.lastName}} | ||
<span class="caret"></span> | ||
</a> | ||
</div> | ||
{{#if _canDisplayMenu}} | ||
<div class="logged-user-menu"> | ||
<ul class="logged-user-menu__list"> | ||
<li class="logged-user-menu__item user-menu-item"> | ||
<div class="user-menu-item__details-firstname"> {{_user.firstName}}</div> | ||
<div class="user-menu-item__details-email">{{_user.email}}</div> | ||
<div class="user-menu-item__account-link"> | ||
<button>Mon compte</button> | ||
</div> | ||
|
||
</li> | ||
<li class="logged-user-menu__item user-menu__item--logout"> | ||
{{#link-to 'logout' class="logged-user-menu__item-logout"}}se déconnecter{{/link-to}}</li> | ||
</ul> | ||
</div> | ||
{{/if}} | ||
{{/if}} |
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
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