summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-12 07:01:27 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-12 07:01:27 +0100
commit453f882db8c4accc2a65a8c49652c1ca7f7b2eb8 (patch)
tree3b3cb1f2370b56116fe0877eedbb83994f5ce56b /templates
parentb4d060e8f8f36a1befa42d60dbf328114d60eee7 (diff)
distinguish arrival-only trains from departures
Diffstat (limited to 'templates')
-rw-r--r--templates/app.html.ep13
-rw-r--r--templates/layouts/app.html.ep2
-rw-r--r--templates/layouts/legacy.html.ep2
3 files changed, 12 insertions, 5 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep
index ec36f03..045ba88 100644
--- a/templates/app.html.ep
+++ b/templates/app.html.ep
@@ -83,9 +83,16 @@
% }
</div>
% }
- <span class="dest <%= $extraclasses %>" aria-label="nach <%= $departure->{destination} %>">
-%= $departure->{destination}
- </span>
+% if (@{$departure->{route_post} // [] }) {
+ <span class="dest <%= $extraclasses %>" aria-label="nach <%= $departure->{destination} %>">
+%= $departure->{destination}
+ </span>
+% }
+% else {
+ <span class="origin <%= $extraclasses %>" aria-label="von <%= $departure->{origin} %>">
+%= $departure->{origin}
+ </span>
+% }
<span class="time <%= ($show_realtime and $departure->{delay} and not
$departure->{is_cancelled}) ? 'delayed' : q{} %> <%= $extraclasses %>">
% if (param('detailed')) {
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep
index c74ab6c..a3703cc 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 = 'v38'; # asset version
+ % my $av = 'v39'; # 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 737f595..c481fc2 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 = 'v38'; # asset version
+ % my $av = 'v39'; # asset version
%= stylesheet "/static/${av}/css/default.css"
%= stylesheet "/static/${av}/css/material-icons.css"
%= stylesheet "/static/${av}/css/jquery-ui.min.css"