-
-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy pathsidenav-buttons.component.html
More file actions
24 lines (22 loc) · 860 Bytes
/
sidenav-buttons.component.html
File metadata and controls
24 lines (22 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<mat-nav-list>
<a mat-list-item *ngFor="let option of Options; index as i" routerLink="{{ Routing[i] }}">
<mat-icon mat-list-icon color="primary">{{ Icons[i] }}</mat-icon>
<h3 mat-line>{{ Options[i] }}</h3>
</a>
<a mat-list-item href="https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel/" target="_blank">
<mat-icon mat-list-icon color="primary" svgIcon="github"></mat-icon>
<h3 mat-line>GitHub</h3>
</a>
</mat-nav-list>
<!-- Separate theme toggle outside nav-list -->
<mat-divider></mat-divider>
<mat-list>
<mat-list-item (click)="toggleTheme()" style="cursor: pointer">
<mat-icon mat-list-icon color="primary">
{{ isNightMode ? 'light_mode' : 'dark_mode' }}
</mat-icon>
<h3 mat-line>
{{ isNightMode ? 'Switch to Light Mode' : 'Switch to Dark Mode' }}
</h3>
</mat-list-item>
</mat-list>