diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-12-12 07:01:27 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-12-12 07:01:27 +0100 |
commit | 453f882db8c4accc2a65a8c49652c1ca7f7b2eb8 (patch) | |
tree | 3b3cb1f2370b56116fe0877eedbb83994f5ce56b /templates/app.html.ep | |
parent | b4d060e8f8f36a1befa42d60dbf328114d60eee7 (diff) |
distinguish arrival-only trains from departures
Diffstat (limited to 'templates/app.html.ep')
-rw-r--r-- | templates/app.html.ep | 13 |
1 files changed, 10 insertions, 3 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')) { |