2020-08-11 17:08:47 +02:00
|
|
|
<rb-full-header id="top">
|
2020-01-14 16:18:26 +01:00
|
|
|
<nav *rbMainNavItems>
|
2020-05-22 12:52:17 +02:00
|
|
|
<a routerLink="/home" routerLinkActive="active" rbLoadingLink>Home</a>
|
2020-08-07 10:49:18 +02:00
|
|
|
<a routerLink="/samples" routerLinkActive="active" rbLoadingLink *ngIf="login.isLoggedIn">Samples</a>
|
|
|
|
<a routerLink="/templates" routerLinkActive="active" rbLoadingLink *ngIf="login.isLevel.dev">
|
2020-08-06 08:18:57 +02:00
|
|
|
Templates
|
|
|
|
</a>
|
2020-08-10 16:15:17 +02:00
|
|
|
<a routerLink="/changelog" routerLinkActive="active" rbLoadingLink *ngIf="login.isLevel.dev">Changelog</a>
|
2020-08-07 10:49:18 +02:00
|
|
|
<a routerLink="/users" routerLinkActive="active" rbLoadingLink *ngIf="login.isLevel.admin">Users</a>
|
2020-07-14 15:58:33 +02:00
|
|
|
<a routerLink="/documentation" routerLinkActive="active" rbLoadingLink>Documentation</a>
|
2020-01-14 16:18:26 +01:00
|
|
|
</nav>
|
2020-06-19 08:43:22 +02:00
|
|
|
|
2020-08-11 14:18:16 +02:00
|
|
|
<ng-container *ngIf="isDocumentation">
|
|
|
|
<nav *rbSubNavItems>
|
|
|
|
<a routerLink="/documentation" routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}">General</a>
|
|
|
|
<a routerLink="/documentation/database" routerLinkActive="active">Database</a>
|
|
|
|
</nav>
|
|
|
|
</ng-container>
|
|
|
|
|
2020-08-07 10:49:18 +02:00
|
|
|
<ng-container *ngIf="login.isLoggedIn">
|
2020-07-14 09:39:37 +02:00
|
|
|
<nav *rbActionNavItems>
|
|
|
|
<a href="javascript:" [rbPopover]="userPopover" [anchor]="popoverAnchor">
|
2020-08-07 10:49:18 +02:00
|
|
|
{{login.username}} <span class="rb-ic rb-ic-my-brand-frame" #popoverAnchor></span></a>
|
2020-07-14 09:39:37 +02:00
|
|
|
</nav>
|
2020-07-29 13:14:29 +02:00
|
|
|
<ng-template #userPopover let-close="close">
|
2020-07-14 09:39:37 +02:00
|
|
|
<div class="spacing">
|
2020-07-29 13:14:29 +02:00
|
|
|
<a routerLink="/settings" (click)="close()"><span class="rb-ic rb-ic-settings"></span> Settings</a>
|
2020-07-14 09:39:37 +02:00
|
|
|
<button type="button" class="rb-btn rb-primary" (click)="logout()">Logout</button>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
</ng-container>
|
2020-06-19 08:43:22 +02:00
|
|
|
|
2020-08-06 08:18:57 +02:00
|
|
|
<div *rbSubBrandHeader>
|
|
|
|
<rb-icon-button icon="bug" mode="secondary" class="space-right" [rbModal]="bugModal">Bug</rb-icon-button>
|
|
|
|
<ng-template let-close="close" #bugModal>
|
|
|
|
<h3>Report a bug</h3>
|
|
|
|
<rb-form-textarea class="bug-textarea" label="What did you do?" [(ngModel)]="bugReport.do"></rb-form-textarea>
|
|
|
|
<rb-form-textarea class="bug-textarea" label="What did not work?" [(ngModel)]="bugReport.work"></rb-form-textarea>
|
|
|
|
<a [href]="bugReportContent()">
|
|
|
|
<rb-icon-button icon="mail" mode="primary" (mouseup)="closeBugReport(close)">Send report</rb-icon-button>
|
|
|
|
</a>
|
|
|
|
</ng-template>
|
2020-08-10 14:28:17 +02:00
|
|
|
<span class="dev-label" *ngIf="devMode">DEVELOPMENT</span>
|
2020-08-06 08:18:57 +02:00
|
|
|
DeFinMa
|
|
|
|
</div>
|
2020-01-14 16:18:26 +01:00
|
|
|
</rb-full-header>
|
2020-05-19 12:49:06 +02:00
|
|
|
|
2020-08-11 17:08:47 +02:00
|
|
|
<div class="to-the-top-container">
|
|
|
|
<div class="container">
|
|
|
|
<router-outlet></router-outlet>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="to-the-top">
|
|
|
|
<rb-icon-button icon="up" mode="primary" iconOnly (click)="toTheTop()"></rb-icon-button>
|
|
|
|
</div>
|
2020-05-19 12:49:06 +02:00
|
|
|
</div>
|