diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-01-06 09:42:21 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-01-06 09:42:21 +0100 |
commit | 72089ea6f2b1e4d7365f9460fcd30ab34641644e (patch) | |
tree | 248121c327759d09b6723867d58ade87aec89b84 | |
parent | 5033c814275ea13d76cc0a6deb1a542578ca04c9 (diff) |
do not show prev/next date links when using tripID4.20.3
-rw-r--r-- | templates/_train_details.html.ep | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 98800f2..6e57b29 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -204,9 +204,13 @@ % } % if ($departure->{route_pre_diff} and $departure->{route_post_diff}) { %= l 'Fahrtverlauf am' - <a href="<%= url_for('train', train => stash('train'))->query({detailed => param('detailed'), past => param('past'), rt => param('rt'), hafas => param('hafas'), date => $departure->{date}->clone->subtract(days => 1)->strftime('%d.%m.%Y'), highlight => param('highlight') // stash('station')}) %>">◀</a> +% if (stash('train') !~ m{[|]}) { + <a href="<%= url_for('train', train => stash('train'))->query({detailed => param('detailed'), past => param('past'), rt => param('rt'), hafas => param('hafas'), date => $departure->{date}->clone->subtract(days => 1)->strftime('%d.%m.%Y'), highlight => param('highlight') // stash('station')}) %>">◀</a> +% } %= $departure->{date}->strftime('%d.%m.%Y') +% if (stash('train') !~ m{[|]}) { <a href="<%= url_for('train', train => stash('train'))->query({detailed => param('detailed'), past => param('past'), rt => param('rt'), hafas => param('hafas'), date => $departure->{date}->clone->add(days => 1)->strftime('%d.%m.%Y'), highlight => param('highlight') // stash('station')}) %>">▶</a> +% } <ul class="mroute"> % for my $stop (@{$departure->{route_pre_diff}}) { <li class="<%= $stop->{isPast} ? 'past-stop' : 'future-stop' %>"> |