summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-11-22 19:52:13 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-11-22 19:52:13 +0100
commit0f6870df13362a6af5d95a0fddd970559acb42bd (patch)
treea6e7136a6a4aef13aafa5f45f3126bba7b9f6095 /templates
parentf8f4b9f1be84b54bedf8cf36a1c6a4ede89b362c (diff)
Fix train detail view for split stations3.4.9
Was broken when the train's station did not match the requested one
Diffstat (limited to 'templates')
-rw-r--r--templates/app.html.ep1
-rw-r--r--templates/layouts/app.html.ep2
-rw-r--r--templates/layouts/legacy.html.ep2
3 files changed, 3 insertions, 2 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep
index f0143cc..ec36f03 100644
--- a/templates/app.html.ep
+++ b/templates/app.html.ep
@@ -36,6 +36,7 @@
data-linetype="<%= $departure->{linetype} %>"
data-from="<%= $departure->{origin} // q{???} %>"
data-to="<%= $departure->{destination} // q{???} %>"
+ data-station="<%= $departure->{station} // $station %>"
data-platform="<%= $departure->{scheduled_platform} // $departure->{platform} // '' %>"
data-arrival="<%= $departure->{sched_arrival} // '' %>"
data-departure="<%= $departure->{sched_departure} // '' %>"
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep
index eb42502..c74ab6c 100644
--- a/templates/layouts/app.html.ep
+++ b/templates/layouts/app.html.ep
@@ -18,7 +18,7 @@
<meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/>
% }
- % my $av = 'v37'; # asset version
+ % my $av = 'v38'; # asset version
% if (session('theme') and session('theme') eq 'dark' or param('dark')) {
%= stylesheet "/static/${av}/css/dark.min.css", id => 'theme'
% }
diff --git a/templates/layouts/legacy.html.ep b/templates/layouts/legacy.html.ep
index c2e206e..737f595 100644
--- a/templates/layouts/legacy.html.ep
+++ b/templates/layouts/legacy.html.ep
@@ -17,7 +17,7 @@
<meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/>
% }
- % my $av = 'v37'; # asset version
+ % my $av = 'v38'; # asset version
%= stylesheet "/static/${av}/css/default.css"
%= stylesheet "/static/${av}/css/material-icons.css"
%= stylesheet "/static/${av}/css/jquery-ui.min.css"