donmahallem/TrapezeClientNg

View on GitHub
src/app/modules/stop/stop-info.component.pug

Summary

Maintainability
Test Coverage
app-map-header-box([blur]="stopLocation===undefined",title="{{stopInfo?.stopName}}",i18n-title="@@stopName",i18n-subtitle="Refreshing in x seconds@@refreshingInXSeconds",subtitle="Refreshing in {{timeUntilRefresh}}s")
    map(appStopLocation,[location]="stopLocation",role="none")
mat-tab-group(mat-stretch-tabs,dynamicHeight)
    mat-tab(i18n-label="tab header departures|Departures@@departures",label="Departures")
        app-departure-list([departures]="stopInfo?.actual")
    mat-tab(i18n-label="tab header routes|Routes@@Routes",label="Routes")
        app-route-list([routes]="stopInfo?.routes")
div.error-box(*ngIf="errorOccured")
    h3 Error occured
    p Will retry in a {{timeUntilRefresh}}s