summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-10 21:27:23 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-10 21:27:23 +0100
commita668150460042c299aa33fdc411b93313ef5a7bc (patch)
treee71284e595639e7f0c1b590e27a3f39d3c492735 /templates
parentb0822cc5a59da117d39d4ad0b21665cfd9f57315 (diff)
only link to wagon order if the train has one2.3.16
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep2
-rw-r--r--templates/wagenreihung.html.ep14
2 files changed, 4 insertions, 12 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 5bff90f..44cf01d 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -73,7 +73,7 @@
% }
% }
</div> <!-- timeinfo -->
-% if (($linetype eq 'fern' or $linetype eq 'ext') and $departure->{wr_link}) {
+% if ($departure->{wr_link}) {
<div class="verbose">
<a href="/_wr/<%= $departure->{train_no} %>/<%= $departure->{wr_link} %>">Wagenreihung</a>
</div>
diff --git a/templates/wagenreihung.html.ep b/templates/wagenreihung.html.ep
index ce028d3..fd20196 100644
--- a/templates/wagenreihung.html.ep
+++ b/templates/wagenreihung.html.ep
@@ -14,19 +14,11 @@
%= join( ' / ', map { $_->{name} } $wr->destinations )
</div>
<%= $wr->station_name %> Gleis <%= $wr->platform %><br/>
- Zugtyp: <%= $wr->train_subtype // 'IC?' %>
+ % if ($wr->train_type =~ m{^IC|EC}) {
+ Zugtyp: <%= $wr->train_subtype // 'IC?' %>
+ % }
</div>
</div>
-% if ($wr->train_type ne 'ICE') {
- <div class="container">
- <div class="warning">
- <strong>⚠ Keine zuverlässigen Daten vorhanden.</strong>
- IC/EC-Wagenreihungen werden vom Backend noch nicht offiziell unterstützt.
- Sowohl die hier angegebenen Daten als auch die am Bahnsteig angezeigte
- Wagenreihung können fehlerhaft sein.
- </div>
- </div>
-% }
<div class="container">
<div style="position: relative; width: 100%; height: 70ex;">
% if (not $wr->has_bad_wagons) {