basic account management (Login/Logout)
This commit is contained in:
		@@ -4,19 +4,21 @@
 | 
			
		||||
    <a routerLink="/samples" routerLinkActive="active" rbLoadingLink *ngIf="loginService.isLoggedIn">Samples</a>
 | 
			
		||||
  </nav>
 | 
			
		||||
 | 
			
		||||
  <nav *rbActionNavItems>
 | 
			
		||||
    <a href="javascript:"  [rbPopover]="userPopover" [anchor]="popoverAnchor">
 | 
			
		||||
      Account <span class="rb-ic rb-ic-my-brand-frame" #popoverAnchor></span></a>
 | 
			
		||||
  </nav>
 | 
			
		||||
  <ng-template #userPopover>
 | 
			
		||||
    <div class="spacing">
 | 
			
		||||
      <p>
 | 
			
		||||
        Some user specific information
 | 
			
		||||
      </p>
 | 
			
		||||
  <ng-container *ngIf="loginService.isLoggedIn">
 | 
			
		||||
    <nav *rbActionNavItems>
 | 
			
		||||
      <a href="javascript:"  [rbPopover]="userPopover" [anchor]="popoverAnchor">
 | 
			
		||||
        {{loginService.username}} <span class="rb-ic rb-ic-my-brand-frame" #popoverAnchor></span></a>
 | 
			
		||||
    </nav>
 | 
			
		||||
    <ng-template #userPopover>
 | 
			
		||||
      <div class="spacing">
 | 
			
		||||
        <p>
 | 
			
		||||
<!--          Some user specific information-->
 | 
			
		||||
        </p>
 | 
			
		||||
 | 
			
		||||
      <a href="javascript:" class="rb-btn rb-primary">Logout</a>
 | 
			
		||||
    </div>
 | 
			
		||||
  </ng-template>
 | 
			
		||||
        <button type="button" class="rb-btn rb-primary" (click)="logout()">Logout</button>
 | 
			
		||||
      </div>
 | 
			
		||||
    </ng-template>
 | 
			
		||||
  </ng-container>
 | 
			
		||||
 | 
			
		||||
  <div *rbSubBrandHeader><span class="dev-label" *ngIf="devMode">DEVELOPMENT</span>Digital Fingerprint of Plastics</div>
 | 
			
		||||
</rb-full-header>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user