diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-01-27 21:14:53 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-01-27 21:14:53 +0100 |
commit | aa49349c50e2484f7fd48cfb63cf6848052ea437 (patch) | |
tree | 12a4c1c7e1c0c8b3ab8433e7faf78dac5abd6404 /templates | |
parent | e01a82b14f948332e1a674a3a764dc13ef5fca48 (diff) |
Wagenreihung: Correctly format powercar numbers2.5.13
Diffstat (limited to 'templates')
-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 { |