summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-06 09:42:21 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-06 09:42:21 +0100
commit72089ea6f2b1e4d7365f9460fcd30ab34641644e (patch)
tree248121c327759d09b6723867d58ade87aec89b84 /templates
parent5033c814275ea13d76cc0a6deb1a542578ca04c9 (diff)
do not show prev/next date links when using tripID4.20.3
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep6
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' %>">