From e168d9cd39c38b8e5a1994c8bf11376d26e9ea77 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 23 Apr 2019 18:08:07 +0200 Subject: Use one row per journey instead of split checkin/checkout entries Whether a user is in transit or not is now determined by an entry in the in_transit table instead of a dangling checkin. All completed journeys are stored in the "journeys" table. This does most of the work needed for automatic checkout. However, note that the corresponding worker process is not implemented yet. --- templates/departures.html.ep | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'templates/departures.html.ep') diff --git a/templates/departures.html.ep b/templates/departures.html.ep index 1240d1d..7d33417 100644 --- a/templates/departures.html.ep +++ b/templates/departures.html.ep @@ -6,10 +6,10 @@
Aktuell eingecheckt

In <%= $status->{train_type} %> <%= $status->{train_no} %> - ab <%= $status->{station_name} %>

+ ab <%= $status->{dep_name} %>

- + Hier auschecken
@@ -20,10 +20,10 @@
Ausgecheckt

Aus <%= $status->{train_type} %> <%= $status->{train_no} %> - bis <%= $status->{station_name} %>

+ bis <%= $status->{arr_name} %>

- + undo Rückgängig?
@@ -38,8 +38,8 @@ – Zug auswählen zum Einchecken. % } % else { - – Keine Abfahrten gefunden. Ein Checkin ist frühestens 10 Minuten vor - und maximal 180 Minuten nach Abfahrt möglich. + – Keine Abfahrten gefunden. Ein Checkin ist frühestens 30 Minuten vor + und maximal 120 Minuten nach Abfahrt möglich. % }
-- cgit v1.2.3