summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-31 08:45:51 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-03-31 08:45:51 +0200
commita8a3aa17cec8fbbfe3e4d4cf4df0331e0b5b80d8 (patch)
treed35c1cc110ed42e6630ff59ab8af78962f889f22 /templates
parent341665c79bde28129d6ca78abf60a04aed6e49e7 (diff)
Perform undo by deleting the erroneous database entry
Diffstat (limited to 'templates')
-rw-r--r--templates/departures.html.ep4
-rw-r--r--templates/landingpage.html.ep8
-rw-r--r--templates/layouts/default.html.ep2
3 files changed, 7 insertions, 7 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep
index 00c1c0e..1240d1d 100644
--- a/templates/departures.html.ep
+++ b/templates/departures.html.ep
@@ -15,7 +15,7 @@
</div>
</div>
% }
- % elsif ($status->{timestamp_delta} < 600) {
+ % elsif ($status->{timestamp_delta} < 180) {
<div class="card grey darken-4">
<div class="card-content white-text">
<span class="card-title">Ausgecheckt</span>
@@ -23,7 +23,7 @@
bis <%= $status->{station_name} %></p>
</div>
<div class="card-action">
- <a class="action-undo">
+ <a class="action-undo" data-id="<%= $status->{action_id} %>">
<i class="material-icons">undo</i> Rückgängig?
</a>
</div>
diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep
index 83ad2a1..dc559f9 100644
--- a/templates/landingpage.html.ep
+++ b/templates/landingpage.html.ep
@@ -21,8 +21,8 @@
<p>Du bist gerade eingecheckt in
<%= $status->{train_type} %> <%= $status->{train_no} %>
ab <%= $status->{station_name} %>.
- % if ($status->{timestamp_delta} < 3600) {
- <a class="action-undo"><i class="material-icons">undo</i> Rückgängig</a>
+ % if ($status->{timestamp_delta} < 180) {
+ <a class="action-undo" data-id="<%= $status->{action_id} %>"><i class="material-icons">undo</i> Rückgängig</a>
% }
</p>
<p>Bei Ankunft: Station auswählen zum Auschecken.</p>
@@ -44,8 +44,8 @@
<p>Prinzipiell wärest du nun eingecheckt in
<%= $status->{train_type} %> <%= $status->{train_no} %>
ab <%= $status->{station_name} %>, doch dieser Zug fällt aus.
- % if ($status->{timestamp_delta} < 3600) {
- <a class="action-undo"><i class="material-icons">undo</i> Checkinversuch rückgängig</a>
+ % if ($status->{timestamp_delta} < 180) {
+ <a class="action-undo" data-id="<%= $status->{action_id} %>"><i class="material-icons">undo</i> Checkinversuch rückgängig</a>
% }
</p>
<p>Falls du den Zugausfall z.B. für ein Fahrgastrechteformular
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index eadc143..51bc25f 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#673ab7">
- % my $av = 'v4'; # asset version
+ % my $av = 'v5'; # asset version
%= stylesheet "/static/${av}/css/materialize.min.css"
%= stylesheet "/static/${av}/css/material-icons.css"
%= stylesheet "/static/${av}/css/local.css"