diff --git a/src/lib/components/ui/TrainServiceTable.svelte b/src/lib/components/ui/TrainServiceTable.svelte index 6d50473..4e3ac8f 100644 --- a/src/lib/components/ui/TrainServiceTable.svelte +++ b/src/lib/components/ui/TrainServiceTable.svelte @@ -101,7 +101,7 @@ Dep - Location + Location Plat Sch Act @@ -113,7 +113,7 @@ {#each trainDetail.locations as loc} - + {loc.t} @@ -121,17 +121,21 @@ {#if loc.r === 'PASS'} Pass - {formatUkTime(loc.wtp)} - {formatUkTime(loc.atp || loc.etp || '--')} + {formatUkTime(loc.wtp)} + {formatUkTime(loc.atp || loc.etp || '--')} {:else} - {formatUkTime(loc.pta || loc.wta)} - {formatUkTime(loc.ata || loc.eta || '--')} - {formatUkTime(loc.ptd || loc.wtd)} - {formatUkTime(loc.atd || loc.etd || '--')} + {formatUkTime(loc.pta || loc.wta)} + {formatUkTime(loc.ata || loc.eta || '--')} + {formatUkTime(loc.ptd || loc.wtd)} + {formatUkTime(loc.atd || loc.etd || '--')} {/if} {#if loc} {@const delay = calculateDelay(loc)} - {delay.val} + {@const arrType = estClass(loc.ata, loc.eta)} + {@const depType = estClass(loc.atd, loc.etd)} + {@const passType = estClass(loc.atp, loc.etp)} + {@const classType = depType || arrType || passType} + {delay.val} {/if} {#if loc.act && getRelevantActivities(loc.act).length > 0} @@ -150,3 +154,115 @@ + + \ No newline at end of file diff --git a/src/lib/components/ui/station-board/ServiceDetailModal.svelte b/src/lib/components/ui/station-board/ServiceDetailModal.svelte index abb0732..477bbe6 100644 --- a/src/lib/components/ui/station-board/ServiceDetailModal.svelte +++ b/src/lib/components/ui/station-board/ServiceDetailModal.svelte @@ -67,9 +67,20 @@ }} >