Closes Issue:

Show train length (OwlBoard/backend#9)
This commit is contained in:
Fred Boniface 2023-04-04 18:42:55 +01:00
parent 91b33b1458
commit 4fb0b34fcc
2 changed files with 4 additions and 3 deletions

View File

@ -60,9 +60,7 @@
<div id="quick_links"> <div id="quick_links">
</div> </div>
<div class="text-description"> <div class="text-description">
<p>A cache error means that some users are seeing a faulty layout on departure board pages, <p>A fault with our bandwidth provider is causing intermittent connectivity. Apologies for any inconvenience.</p>
an update to fix this has been made available but it may take a few days for this fix to
be downloaded to your device.
</p> </p>
<p>Customise your quick links on the <a href="/settings.html">Settings</a> page.</p> <p>Customise your quick links on the <a href="/settings.html">Settings</a> page.</p>
</div> </div>

View File

@ -141,6 +141,9 @@ async function displayService(svc) {
// Display Operator // Display Operator
if (svc.operator) { if (svc.operator) {
var opRow = `<p class="msg op">A ${svc.operator} service</p>` var opRow = `<p class="msg op">A ${svc.operator} service</p>`
if (svc.length) {
opRow += `, with ${svc.length} carriages`;
}
table.insertAdjacentHTML("beforeend", opRow); table.insertAdjacentHTML("beforeend", opRow);
} }
// Parse cancelReason & delayReason // Parse cancelReason & delayReason