summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-08-25 09:00:59 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-08-25 09:00:59 +0200
commit628a5c705b94f0cd2cad952082d278fc5e765a0e (patch)
treee8eef5f9c1faadfc097ed91c8f645e0eca4d974b /templates
parent74f2132c2e5b2637363e3885d71a1d917dbfa746 (diff)
turn force checkout into a proper button
Diffstat (limited to 'templates')
-rw-r--r--templates/_checked_in.html.ep14
1 files changed, 10 insertions, 4 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index af9e71a..a1ac08e 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -191,9 +191,7 @@
% if (defined $journey->{arrival_countdown} and $journey->{arrival_countdown} <= 0) {
<p style="margin-top: 2ex;">
Der automatische Checkout erfolgt wegen gelegentlich veralteter
- IRIS-Daten erst etwa zehn Minuten nach der Ankunft. <a
- class="action-checkout"
- data-station="<%= $journey->{arr_name}%>">Jetzt auschecken</a>.
+ IRIS-Daten erst etwa zehn Minuten nach der Ankunft.
</p>
% }
% elsif (not $journey->{arr_name}) {
@@ -217,7 +215,15 @@
<a class="action-undo blue-text" data-id="in_transit">
<i class="material-icons left">undo</i> Rückgängig
</a>
- % if ($journey->{arr_name}) {
+ % if (defined $journey->{arrival_countdown} and $journey->{arrival_countdown} <= 0) {
+ <a
+ class="action-checkout right"
+ data-station="<%= $journey->{arr_name}%>">
+ <i class="material-icons left">done</i>
+ Jetzt auschecken
+ </a>
+ % }
+ % elsif ($journey->{arr_name}) {
% my $attrib = 'im';
% if ($journey->{train_type} =~ m{ ^ (?: S | RB ) $ }x) {
% $attrib = 'in der';