summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-11-02 22:29:12 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-11-02 22:29:12 +0100
commitb41a64bd7f246bdf3651111d167167e61af4d0c9 (patch)
tree2d32c5e562c3751d3cffab61478cbddb7b41f5cb /templates
parentf87306dc34e91ade3e55d67ac776fd5c7fd3bb15 (diff)
add undo for checkouts
Diffstat (limited to 'templates')
-rw-r--r--templates/departures.html.ep14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep
index bd11d15..be2c7cd 100644
--- a/templates/departures.html.ep
+++ b/templates/departures.html.ep
@@ -15,6 +15,20 @@
</div>
</div>
% }
+ % elsif ($status->{timestamp_delta} < 600) {
+ <div class="card grey darken-4">
+ <div class="card-content white-text">
+ <span class="card-title">Ausgecheckt</span>
+ <p>Aus <%= $status->{train_type} %> <%= $status->{train_no} %>
+ bis <%= $status->{station_name} %></p>
+ </div>
+ <div class="card-action">
+ <a class="action-undo">
+ <i class="material-icons">undo</i> Rückgängig?
+ </a>
+ </div>
+ </div>
+ % }
</div>
</div>
<div class="row">