Add non-public, pass times, and booked platforms to train details

This commit is contained in:
Fred Boniface 2024-04-17 13:04:31 +01:00
parent 8c91a50a34
commit 3abdc7d740
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,3 @@
export const version: string = '2024.04.2'; export const version: string = '2024.04.3';
export const versionTag: string = 'swarm'; export const versionTag: string = 'swarm';
export const showWelcome: boolean = true; export const showWelcome: boolean = true;

View File

@ -63,7 +63,6 @@
<TrainIcons firstClass={serviceDetail.firstClass} hasCatering={serviceDetail.catering} sleeper={serviceDetail.sleeper} vstp={serviceDetail.vstp} /> <TrainIcons firstClass={serviceDetail.firstClass} hasCatering={serviceDetail.catering} sleeper={serviceDetail.sleeper} vstp={serviceDetail.vstp} />
{#if serviceDetail.pis} {#if serviceDetail.pis}
<br>
<PisHandler pisObject={serviceDetail.pis} /> <PisHandler pisObject={serviceDetail.pis} />
{/if} {/if}
<p class="svc-detail"> <p class="svc-detail">
@ -80,9 +79,10 @@
})} })}
</p> </p>
<table> <table>
<caption>Grey times are non-passenger stops, italics are 'pass' times</caption> <caption>Italics are 'pass' times, grey times are non-passenger stops</caption>
<tr> <tr>
<th>Location</th> <th>Location</th>
<th>Plt.</th>
<th>Sch Arr.</th> <th>Sch Arr.</th>
<th>Sch Dep.</th> <th>Sch Dep.</th>
</tr> </tr>
@ -90,16 +90,19 @@
<tr> <tr>
{#if stop.publicArrival || stop.publicDeparture} {#if stop.publicArrival || stop.publicDeparture}
<td>{stop.tiploc}</td> <td>{stop.tiploc}</td>
<td>{stop.platform || '-'}</td>
<td>{stop.publicArrival || '-'}</td> <td>{stop.publicArrival || '-'}</td>
<td>{stop.publicDeparture || '-'}</td> <td>{stop.publicDeparture || '-'}</td>
{:else if stop.wttArrival || stop.wttDeparture} {:else if stop.wttArrival || stop.wttDeparture}
<td class="wtt">{stop.tiploc}</td> <td class="wtt">{stop.tiploc}</td>
<td class="wtt">{stop.platform || stop.depLine || stop.arrLine || '-'}</td>
<td class="wtt">{stop.wttArrival || '-'}</td> <td class="wtt">{stop.wttArrival || '-'}</td>
<td class="wtt">{stop.wttDeparture || '-'}</td> <td class="wtt">{stop.wttDeparture || '-'}</td>
{:else} {:else}
<td class="pass">{stop.tiploc}</td> <td class="pass">{stop.tiploc}</td>
<td class="pass">{stop.platform || stop.depLine || stop.arrLine || '-'}</td>
<td class="pass">-</td> <td class="pass">-</td>
<td class="pass">-</td> <td class="pass">{stop.pass || '-'}</td>
{/if} {/if}
</tr> </tr>
{/each} {/each}