diff options
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r-- | templates/_train_details.html.ep | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 4943ba2..12aab91 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -224,13 +224,15 @@ </ul> % } % if ($departure->{route_pre_diff} and $departure->{route_post_diff}) { -%= l 'Fahrtverlauf am' -% 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> +% if ($departure->{date}) { +%= l 'Fahrtverlauf am' +% 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}}) { |