<!-- nav -->
<nav class="topnav" *ngIf="currentUser" >
    <a class="active" routerLink="/">Home</a>
    <a  routerLink="/form">Add Form</a>
    <a  routerLink="/users" *ngIf="currentUser.is_admin">Settings</a>
    <div class="topnav-right">
        <a style="pointer-events: none; cursor: default;">Hi {{currentUser.first_name}} {{currentUser.last_name}}</a>
        <a (click)="logout()">Logout</a>
    </div>
</nav>
<!-- main app container -->
<div class="jumbotron"  [ngStyle]="{'background-image': 'url(' + path + ')', 'background-size': 'cover'}">
    <div class="container">
        <div class="row">
            <div>
                <alert></alert>
                <router-outlet></router-outlet>
            </div>
        </div>
    </div>
</div>
