summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-11-02 21:35:53 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-11-02 21:35:53 +0100
commitf87306dc34e91ade3e55d67ac776fd5c7fd3bb15 (patch)
tree47be4ecfc7539b1abecb7198f4d8c8d0b9611755 /templates
parent6933b8ee45bee33562ac3bf9cd864e6d09e6917b (diff)
allow undo for checkins
Diffstat (limited to 'templates')
-rw-r--r--templates/landingpage.html.ep6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep
index 5d03262..00a67cc 100644
--- a/templates/landingpage.html.ep
+++ b/templates/landingpage.html.ep
@@ -7,7 +7,11 @@
<span class="card-title">Hallo, <%= $self->get_user_name %>!</span>
<p>Du bist gerade eingecheckt in
<%= $status->{train_type} %> <%= $status->{train_no} %>
- ab <%= $status->{station_name} %>.</p>
+ ab <%= $status->{station_name} %>.
+ % if ($status->{timestamp_delta} < 3600) {
+ <a class="action-undo"><i class="material-icons">undo</i> Rückgängig</a>
+ % }
+ </p>
<p>Auschecken?</p>
<table>
<tbody>