Yrkki/cv-generator-fe

View on GitHub
src/app/components/navigation/navigation.component.html

Summary

Maintainability
Test Coverage
<div class="center py-1" role="tablist">
    <span class="text-header">{{ portfolioService.model.ui['Jump to']?.text }}</span>
    <ng-container *ngFor="let key of entities | keys; let i = index; trackBy: trackByFn">
        <ng-container
            *ngIf="entities[key].class !== '' && (portfolioService.toolbarService.editMode || !portfolioService.persistenceService.getToggleValue(key))">
            <span role="tab" class="tab" id="{{ tabName(key) + position }}">
                <a title="{{ linkToThisText }}" href="/{{ componentName }}#{{ key }}">
                    <span class="text-icons {{ entities[key].class }}">{{ linkToThisSymbol }}</span>
                    {{ nonBreaking(decorateMain(key)) }}
                    <ng-container *ngIf="entities[key].key.includes('Map')">
                        <em class="fas fa-chart-line"></em>
                        <span class="text-header">{{ nonBreaking(' ') }}</span>
                    </ng-container>
                    <span class="d-inline-block" style="width: 2em">
                        <span class="text-header">{{ count(key) }}</span>
                    </span>
                </a>
            </span>
        </ng-container>
    </ng-container>
</div>