diff options
Diffstat (limited to 'templates/wagenreihung.html.ep')
-rw-r--r-- | templates/wagenreihung.html.ep | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/wagenreihung.html.ep b/templates/wagenreihung.html.ep index 2167204..2c63c0e 100644 --- a/templates/wagenreihung.html.ep +++ b/templates/wagenreihung.html.ep @@ -120,7 +120,7 @@ % if (length($uic_id) != 12) { <span class="uicunknown"><%= $uic_id %></span> % } -% elsif ($wr->train_type eq 'ICE') { +% elsif (substr($uic_id, 0, 2) >= 90) { <span class="uicexchange"><%= substr($uic_id, 0, 2) %></span><span class="uiccountry"><%= substr($uic_id, 2, 2) %></span><span class="uic5"><%= substr($uic_id, 4, 1) %></span><span class="uictype"><%= substr($uic_id, 5, 3) %></span><span class="uicno"><%= substr($uic_id, 8, 3) %></span><span class="uiccheck"><%= substr($uic_id, 11) %></span> % } % else { |