Skip to content

Commit

Permalink
Merge pull request #448 from sinfo/staging
Browse files Browse the repository at this point in the history
Update 2.4.1
  • Loading branch information
andreromao authored Apr 15, 2024
2 parents ff3380b + ccc6e34 commit 42492e4
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 101 deletions.
2 changes: 1 addition & 1 deletion src/app/user/user.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,5 @@
}

.navlist {
height: -webkit-fill-available !important;
min-height: 100%;
}
194 changes: 94 additions & 100 deletions src/app/user/user.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,34 +70,32 @@ <h2 *ngIf="user && user.role === 'team'" matSubheader style="color: grey;">Staff
<span class="list-item">Validate Card</span>
</div>
</a>
<mat-accordion *ngIf="user && user.role === 'team'">
<mat-expansion-panel style="background-color: transparent; box-shadow: none;">
<mat-expansion-panel-header class="specific-class">
<a mat-list-item>
<div class="navigation-link">
<mat-icon>cake</mat-icon>
<span class="list-item">Pick Winner</span>
</div>
</a>
</mat-expansion-panel-header>
<mat-nav-list>
<a *ngIf="user && user.role === 'team'" mat-list-item routerLink="/user/prizes"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>cake</mat-icon>
<span class="list-item">Prizes</span>
</div>
</a>
<a *ngIf="user && user.role === 'team'" mat-list-item routerLink="/user/pick-winner"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>cake</mat-icon>
<span class="list-item">Pick Winner</span>
</div>
</a>
</mat-nav-list>
</mat-expansion-panel>
</mat-accordion>
<mat-expansion-panel *ngIf="user && user.role === 'team'" style="background-color: transparent; box-shadow: none;">
<mat-expansion-panel-header class="specific-class">
<a mat-list-item>
<div class="navigation-link">
<mat-icon>cake</mat-icon>
<span class="list-item">Pick Winner</span>
</div>
</a>
</mat-expansion-panel-header>
<mat-nav-list>
<a *ngIf="user && user.role === 'team'" mat-list-item routerLink="/user/prizes"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>cake</mat-icon>
<span class="list-item">Prizes</span>
</div>
</a>
<a *ngIf="user && user.role === 'team'" mat-list-item routerLink="/user/pick-winner"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>cake</mat-icon>
<span class="list-item">Pick Winner</span>
</div>
</a>
</mat-nav-list>
</mat-expansion-panel>

<h2 *ngIf="user && user.role === 'team'" matSubheader style="color: grey;">Company Options</h2>
<a
Expand Down Expand Up @@ -133,42 +131,40 @@ <h2 *ngIf="user && user.role === 'team'" matSubheader style="color: grey;">Compa
<span class="list-item">Download CVs</span>
</div>
</a>

<mat-accordion *ngIf="user && user.role === 'team'">
<mat-expansion-panel style="background-color: transparent; box-shadow: none;">
<mat-expansion-panel-header class="specific-class">
<a mat-list-item class="navigation-link">
<div class="navigation-link">
<mat-icon>get_app</mat-icon>
<span class="list-item">CV Downloads </span>
</div>
</a>
</mat-expansion-panel-header>
<mat-nav-list>
<a *ngIf="user && user.role !== 'user'" mat-list-item routerLink="/user/downloads/download"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>get_app</mat-icon>
<span class="list-item">Download CVs</span>
</div>
</a>
<a *ngIf="user && user.role === 'team'" mat-list-item routerLink="/user/downloads/manage"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>get_app</mat-icon>
<span class="list-item">Create Endpoints</span>
</div>
</a>
<a *ngIf="user && user.role === 'team'" mat-list-item routerLink="/user/downloads/status"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>get_app</mat-icon>
<span class="list-item">Endpoints Status</span>
</div>
</a>
</mat-nav-list>
</mat-expansion-panel>
</mat-accordion>

<mat-expansion-panel *ngIf="user && user.role === 'team'" style="background-color: transparent; box-shadow: none;">
<mat-expansion-panel-header class="specific-class">
<a mat-list-item class="navigation-link">
<div class="navigation-link">
<mat-icon>get_app</mat-icon>
<span class="list-item">CV Downloads </span>
</div>
</a>
</mat-expansion-panel-header>
<mat-nav-list>
<a *ngIf="user && user.role !== 'user'" mat-list-item routerLink="/user/downloads/download"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>get_app</mat-icon>
<span class="list-item">Download CVs</span>
</div>
</a>
<a *ngIf="user && user.role === 'team'" mat-list-item routerLink="/user/downloads/manage"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>get_app</mat-icon>
<span class="list-item">Create Endpoints</span>
</div>
</a>
<a *ngIf="user && user.role === 'team'" mat-list-item routerLink="/user/downloads/status"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>get_app</mat-icon>
<span class="list-item">Endpoints Status</span>
</div>
</a>
</mat-nav-list>
</mat-expansion-panel>

<h2 *ngIf="user && user.role === 'team'" matSubheader style="color: grey;">Atendee Options</h2>

Expand Down Expand Up @@ -206,42 +202,40 @@ <h2 *ngIf="user && user.role === 'team'" matSubheader style="color: grey;">Atend
</div>
</a>

<mat-accordion *ngIf="user && user.role === 'team'">
<mat-expansion-panel style="background-color: transparent; box-shadow: none;">
<mat-expansion-panel-header class="specific-class">
<a mat-list-item class="navigation-link">
<div class="navigation-link">
<mat-icon> business</mat-icon>
<span class="list-item">Workshops</span>
</div>
</a>
</mat-expansion-panel-header>
<mat-nav-list>
<a *ngIf="user && user.role !== 'company'" mat-list-item routerLink="/user/workshops"
routerLinkActive="navigation-link active" [routerLinkActiveOptions]="{ exact: true }"
(click)="sidenav.toggle()" class="navigation-link">
<div class="navigation-link">
<mat-icon> business</mat-icon>
<span class="list-item">Workshops</span>
</div>
</a>
<a *ngIf="user && user.role === 'team'" mat-list-item routerLink="/user/workshops/workshops-status"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>info</mat-icon>
<span class="list-item">Workshop Status</span>
</div>
</a>
<a *ngIf="user && user.role === 'team'" mat-list-item routerLink="/user/validate-workshop"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>event</mat-icon>
<span class="list-item">Validate Workshop</span>
</div>
</a>
</mat-nav-list>
</mat-expansion-panel>
</mat-accordion>
<mat-expansion-panel *ngIf="user && user.role === 'team'" style="background-color: transparent; box-shadow: none;">
<mat-expansion-panel-header class="specific-class">
<a mat-list-item class="navigation-link">
<div class="navigation-link">
<mat-icon> business</mat-icon>
<span class="list-item">Workshops</span>
</div>
</a>
</mat-expansion-panel-header>
<mat-nav-list>
<a *ngIf="user && user.role !== 'company'" mat-list-item routerLink="/user/workshops"
routerLinkActive="navigation-link active" [routerLinkActiveOptions]="{ exact: true }"
(click)="sidenav.toggle()" class="navigation-link">
<div class="navigation-link">
<mat-icon> business</mat-icon>
<span class="list-item">Workshops</span>
</div>
</a>
<a *ngIf="user && user.role === 'team'" mat-list-item routerLink="/user/workshops/workshops-status"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>info</mat-icon>
<span class="list-item">Workshop Status</span>
</div>
</a>
<a *ngIf="user && user.role === 'team'" mat-list-item routerLink="/user/validate-workshop"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>event</mat-icon>
<span class="list-item">Validate Workshop</span>
</div>
</a>
</mat-nav-list>
</mat-expansion-panel>



Expand Down

0 comments on commit 42492e4

Please sign in to comment.