From 0f9dde3810a3b86e0769e6013a19ccf0faeba0a3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 25 Dec 2020 17:27:57 +0100 Subject: add wagon images for IC and ICE 1/2/4 IC2, ICE 3 and ICE T will follow soon. --- templates/_wagon.html.ep | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'templates/_wagon.html.ep') diff --git a/templates/_wagon.html.ep b/templates/_wagon.html.ep index 95b1c2e..a9221bd 100644 --- a/templates/_wagon.html.ep +++ b/templates/_wagon.html.ep @@ -50,9 +50,14 @@
- -%= $wagon->type - +% if (my $img = wagon_image($type, $wagon->type, $wagon->uic_id)) { + <%= $wagon->type %> +% } +% else { + +%= $wagon->type + +% } % my $uic_id = $wagon->uic_id; % if (length($uic_id) != 12) { <%= $uic_id %> -- cgit v1.2.3