summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-01-09 19:42:41 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-01-09 19:42:41 +0100
commit8da6180bf186523af9aadd51ff5512a278f3e300 (patch)
treec75a9a0a6e3fd91131e9ee86f13ee07129af7bf3 /templates
parent2ab551e913c56185d5888784453c18de376f56d6 (diff)
readd ze zycles4.14.9
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep16
1 files changed, 11 insertions, 5 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 21f11a3..3e07cf8 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -320,10 +320,6 @@
</ul>
</div>
% }
-% if ($departure->{has_cycle}) {
- <div class="db-attr"><a href="https://lib.finalrewind.org/dbdb/db_umlauf/<%= $departure->{train_no} %>.svg">Umlaufplan</a>
- (ggf. fehlerhaft)</div>
-% }
% if ($details->{attributes}) {
% if (@{$details->{attributes}} > 1) {
<div class="db-attr">
@@ -352,7 +348,12 @@
% my ($train_no, $train) = @{$t};
% my $tt = $train->{type} // $train->{rawType} // 'Zug';
% $tt =~ s{ .*|[0-9]}{};
+% if ($tt ne 'Zug') {
+ <li><a href="<%= url_for('train', train => "$tt $train_no")->query({detailed => param('detailed'), past => param('past'), rt => param('rt')}) %>"><%= $tt %> <%= $train_no %></a>
+% }
+% else {
<li><%= $tt %> <%= $train_no %>
+% }
% if ($train->{route}{start} and $train->{route}{end}) {
<%= $train->{route}{start} %> → <%= $train->{route}{end} %>
% }
@@ -361,7 +362,7 @@
</ul>
% }
% }
-% elsif ($details and not $departure->{departure}) {
+% if ($details and not $departure->{departure}) {
% if (my $e = $details->{route}{postEnd}) {
Zug wird voraussichtlich in <%= $e %> abgestellt.<br/><br/>
% }
@@ -372,7 +373,12 @@
% my ($train_no, $train) = @{$t};
% my $tt = $train->{type} // $train->{rawType} // 'Zug';
% $tt =~ s{ .*|[0-9]}{};
+% if ($tt ne 'Zug') {
+ <li><a href="<%= url_for('train', train => "$tt $train_no")->query({detailed => param('detailed'), past => param('past'), rt => param('rt')}) %>"><%= $tt %> <%= $train_no %></a>
+% }
+% else {
<li><%= $tt %> <%= $train_no %>
+% }
% if ($train->{route}{start} and $train->{route}{end}) {
<%= $train->{route}{start} %> → <%= $train->{route}{end} %>
% }