diff options
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')) { |