123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- <nav class="navbar navbar-dark navbar-expand-md jh-navbar">
- <div class="jh-logo-container float-left">
- <a class="jh-navbar-toggler d-lg-none float-right" href="javascript:void(0);" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation" (click)="toggleNavbar()">
- <fa-icon icon="bars"></fa-icon>
- </a>
- <a class="navbar-brand logo float-left" routerLink="/" (click)="collapseNavbar()">
- <span class="logo-img"></span>
- <span jhiTranslate="global.title" class="navbar-title">ZipConnect</span> <span class="navbar-version">{{version}}</span>
- </a>
- </div>
- <div class="navbar-collapse collapse" id="navbarResponsive" [ngbCollapse]="isNavbarCollapsed" [ngSwitch]="isAuthenticated()">
- <ul class="navbar-nav ml-auto">
- <li class="nav-item" routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}">
- <a class="nav-link" routerLink="/" (click)="collapseNavbar()">
- <span>
- <fa-icon icon="home"></fa-icon>
- <span jhiTranslate="global.menu.home">Home</span>
- </span>
- </a>
- </li>
- <!-- jhipster-needle-add-element-to-menu - JHipster will add new menu items here -->
- <li *ngSwitchCase="true" ngbDropdown class="nav-item dropdown pointer" routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}">
- <a class="nav-link dropdown-toggle" ngbDropdownToggle href="javascript:void(0);" id="entity-menu">
- <span>
- <fa-icon icon="th-list"></fa-icon>
- <span jhiTranslate="global.menu.entities.main">
- Entities
- </span>
- </span>
- </a>
- <ul class="dropdown-menu" ngbDropdownMenu>
- <li>
- <a class="dropdown-item" routerLink="user-profile" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }" (click)="collapseNavbar()">
- <fa-icon icon="asterisk" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.entities.userProfile">User Profile</span>
- </a>
- </li>
- <li>
- <a class="dropdown-item" routerLink="cohort" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }" (click)="collapseNavbar()">
- <fa-icon icon="asterisk" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.entities.cohort">Cohort</span>
- </a>
- </li>
- <li>
- <a class="dropdown-item" routerLink="employer" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }" (click)="collapseNavbar()">
- <fa-icon icon="asterisk" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.entities.employer">Employer</span>
- </a>
- </li>
- <li>
- <a class="dropdown-item" routerLink="post" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }" (click)="collapseNavbar()">
- <fa-icon icon="asterisk" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.entities.post">Post</span>
- </a>
- </li>
- <li>
- <a class="dropdown-item" routerLink="privacy" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }" (click)="collapseNavbar()">
- <fa-icon icon="asterisk" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.entities.privacy">Privacy</span>
- </a>
- </li>
- <!-- jhipster-needle-add-entity-to-menu - JHipster will add entities to the menu here -->
- </ul>
- </li>
- <li *jhiHasAnyAuthority="'ROLE_ADMIN'" ngbDropdown class="nav-item dropdown pointer" routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}">
- <a class="nav-link dropdown-toggle" ngbDropdownToggle href="javascript:void(0);" id="admin-menu">
- <span>
- <fa-icon icon="user-plus"></fa-icon>
- <span jhiTranslate="global.menu.admin.main">Administration</span>
- </span>
- </a>
- <ul class="dropdown-menu" ngbDropdownMenu>
- <li>
- <a class="dropdown-item" routerLink="admin/user-management" routerLinkActive="active" (click)="collapseNavbar()">
- <fa-icon icon="user" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.admin.userManagement">User management</span>
- </a>
- </li>
- <li>
- <a class="dropdown-item" routerLink="admin/jhi-metrics" routerLinkActive="active" (click)="collapseNavbar()">
- <fa-icon icon="tachometer-alt" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.admin.metrics">Metrics</span>
- </a>
- </li>
- <li>
- <a class="dropdown-item" routerLink="admin/jhi-health" routerLinkActive="active" (click)="collapseNavbar()">
- <fa-icon icon="heart" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.admin.health">Health</span>
- </a>
- </li>
- <li>
- <a class="dropdown-item" routerLink="admin/jhi-configuration" routerLinkActive="active" (click)="collapseNavbar()">
- <fa-icon icon="list" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.admin.configuration">Configuration</span>
- </a>
- </li>
- <li>
- <a class="dropdown-item" routerLink="admin/audits" routerLinkActive="active" (click)="collapseNavbar()">
- <fa-icon icon="bell" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.admin.audits">Audits</span>
- </a>
- </li>
- <li>
- <a class="dropdown-item" routerLink="admin/logs" routerLinkActive="active" (click)="collapseNavbar()">
- <fa-icon icon="tasks" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.admin.logs">Logs</span>
- </a>
- </li>
- <li *ngIf="swaggerEnabled">
- <a class="dropdown-item" routerLink="admin/docs" routerLinkActive="active" (click)="collapseNavbar()">
- <fa-icon icon="book" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.admin.apidocs">API</span>
- </a>
- </li>
- <!-- jhipster-needle-add-element-to-admin-menu - JHipster will add entities to the admin menu here -->
- <li *ngIf="!inProduction">
- <a class="dropdown-item" href='./h2-console' target="_tab" (click)="collapseNavbar()">
- <fa-icon icon="hdd" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.admin.database">Database</span>
- </a>
- </li>
- </ul>
- </li>
- <li ngbDropdown class="nav-item dropdown pointer" *ngIf="languages && languages.length > 1">
- <a class="nav-link dropdown-toggle" ngbDropdownToggle href="javascript:void(0);" id="languagesnavBarDropdown">
- <span>
- <fa-icon icon="flag"></fa-icon>
- <span jhiTranslate="global.menu.language">Language</span>
- </span>
- </a>
- <ul class="dropdown-menu" ngbDropdownMenu>
- <li *ngFor="let language of languages">
- <a class="dropdown-item" [jhiActiveMenu]="language" href="javascript:void(0);" (click)="changeLanguage(language);collapseNavbar();">{{language | findLanguageFromKey}}</a>
- </li>
- </ul>
- </li>
- <li ngbDropdown class="nav-item dropdown pointer" placement="bottom-right" routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}">
- <a class="nav-link dropdown-toggle" ngbDropdownToggle href="javascript:void(0);" id="account-menu">
- <span *ngIf="!getImageUrl()">
- <fa-icon icon="user"></fa-icon>
- <span jhiTranslate="global.menu.account.main">
- Account
- </span>
- </span>
- <span *ngIf="getImageUrl()">
- <img [src]="getImageUrl()" class="profile-image img-circle" alt="Avatar">
- </span>
- </a>
- <ul class="dropdown-menu" ngbDropdownMenu>
- <li *ngSwitchCase="true">
- <a class="dropdown-item" routerLink="settings" routerLinkActive="active" (click)="collapseNavbar()">
- <fa-icon icon="wrench" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.account.settings">Settings</span>
- </a>
- </li>
- <li *ngSwitchCase="true">
- <a class="dropdown-item" routerLink="password" routerLinkActive="active" (click)="collapseNavbar()">
- <fa-icon icon="clock" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.account.password">Password</span>
- </a>
- </li>
- <li *ngSwitchCase="true">
- <a class="dropdown-item" (click)="logout()" id="logout">
- <fa-icon icon="sign-out-alt" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.account.logout">Sign out</span>
- </a>
- </li>
- <li *ngSwitchCase="false">
- <a class="dropdown-item" (click)="login()" id="login">
- <fa-icon icon="sign-in-alt" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.account.login">Sign in</span>
- </a>
- </li>
- <li *ngSwitchCase="false">
- <a class="dropdown-item" routerLink="register" routerLinkActive="active" (click)="collapseNavbar()">
- <fa-icon icon="user-plus" fixedWidth="true"></fa-icon>
- <span jhiTranslate="global.menu.account.register">Register</span>
- </a>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- </nav>
|