summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
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"