<ion-header>
    <ion-toolbar>
        <ion-title>{{ 'addon.mod_imscp.toc' | translate }}</ion-title>
        <ion-buttons slot="end">
            <ion-button (click)="closeModal()" [attr.aria-label]="'core.close' | translate">
                <ion-icon name="fas-times" slot="icon-only" aria-hidden=true></ion-icon>
            </ion-button>
        </ion-buttons>
    </ion-toolbar>
</ion-header>
<ion-content>
    <nav>
        <ion-list>
            <ion-item *ngFor="let item of items" (click)="loadItem(item.href)"
                [attr.aria-current]="selected == item.href ? 'page' :  'false'" button>
                <ion-label [class.core-bold]="!item.href">
                    <span class="ion-padding-left" *ngFor="let i of getNumberForPadding(item.level)"></span>{{item.title}}
                </ion-label>
            </ion-item>
        </ion-list>
    </nav>
</ion-content>
