add next stop
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m35s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m35s
This commit is contained in:
parent
8bad3eb74e
commit
8ab3ed331f
3 changed files with 12 additions and 2 deletions
|
|
@ -148,7 +148,11 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
{% let live_o = timetable.tracking_data[loop.index0] %}
|
||||
{% if let Tracked(live) = live_o %}
|
||||
{% let time = (t + (live.delay * 60.0) as i64) %}
|
||||
{% if live.next_stop_id == Some(*row.stop_id) %}
|
||||
<td style="background-color: #00bb00">
|
||||
{% else %}
|
||||
<td style="background-color: #003300">
|
||||
{% endif %}
|
||||
<span style="color: #22bb22"> {{ time | format_time }} </span>
|
||||
</td>
|
||||
{% elif let TripTracking::Cancelled = live_o %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue