Commit 084fe3eb authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

add more wagon images

parent 0f9dde38
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -188,9 +188,23 @@ sub startup {
			elsif ( $train_type =~ m{ICE [12]} and $wagon_type !~ m{^I} ) {
				$ret = substr( $uic, 5, 4 );
			}
			elsif ( $train_type =~ m{ICE 3 Redesign} ) {
				$ret = '3r_' . substr( $uic, 5, 4 );
			}
			elsif ( $train_type =~ m{ICE 3} and substr( $uic, 5, 3 ) eq '406' )
			{
				$ret = '3_' . substr( $uic, 5, 4 );
			}
			elsif ( $train_type eq 'ICE 3 Velaro' ) {
				$ret = substr( $uic, 5, 4 );
			}
			elsif ( $train_type =~ m{ICE 4} ) {
				$ret = substr( $uic, 4, 5 );
			}
			elsif ( $train_type =~ m{ICE T} and substr( $uic, 5, 3 ) eq '415' )
			{
				$ret = substr( $uic, 5, 4 );
			}
			if ( $ret and $self->app->dbdb_wagon->{$ret} ) {
				return $ret;
			}
+93 −45
Original line number Diff line number Diff line
@@ -6,6 +6,54 @@
"24123":true,
"24125":true,
"24128":true,
"31_4030":true,
"31_4031":true,
"31_4032":true,
"31_4033":true,
"31_4035":true,
"31_4036":true,
"31_4037":true,
"31_4038":true,
"32_4030":true,
"32_4031":true,
"32_4032":true,
"32_4033":true,
"32_4035":true,
"32_4036":true,
"32_4037":true,
"32_4038":true,
"3_4060":true,
"3_4061":true,
"3_4062":true,
"3_4063":true,
"3_4065":true,
"3_4066":true,
"3_4067":true,
"3_4068":true,
"3r_4030":true,
"3r_4031":true,
"3r_4032":true,
"3r_4033":true,
"3r_4035":true,
"3r_4036":true,
"3r_4037":true,
"3r_4038":true,
"3r_4060":true,
"3r_4061":true,
"3r_4062":true,
"3r_4063":true,
"3r_4065":true,
"3r_4066":true,
"3r_4067":true,
"3r_4068":true,
"4070":true,
"4071":true,
"4072":true,
"4073":true,
"4075":true,
"4076":true,
"4077":true,
"4078":true,
"48120":true,
"58120":true,
"64120":true,
@@ -25,11 +73,11 @@
"8060":true,
"8063":true,
"8066":true,
"x8070": true,
"8070":true,
"8080":true,
"88120":true,
"98120":true,
"xApmmz": true,
"Apmmz":true,
"ARkimbz":true,
"ARkimmbz":true,
"Avmmz":true,
@@ -43,5 +91,5 @@
"Bpmmz":true,
"Bvmmsz":true,
"Bvmmz":true,
"xBvmsz": true
"Bvmsz":true
}
+5 −8
Original line number Diff line number Diff line
<div class="container">
	% if ($wref->{s} and $wref->{p} and $wref->{ws}) {
		<p>
			<%= $wref->{s} %>: Gleis <%= $wref->{p} %> <%= $wref->{ws} %>
		</p>
	% }
	<div>
		<a href="<%= $wagon_file %>"><img src="<%= $wagon_file %>" style="width: 100%;"></a>
	</div>
	<p>
		% if ($wref->{s} and $wref->{p} and $wref->{ws}) {
			Position in <%= $wref->{s} %>: Gleis <%= $wref->{p} %> Abschnitt <%= $wref->{ws} %>
		% }
		% elsif ($wref->{s} and $wref->{p}) {
			<%= $wref->{s} %> Gleis <%= $wref->{p} %>
		% }
	</p>
	<p class="copyright">
		Abbildung © Seemanngrafik d.i.p. im Auftrag der Deutschen Bahn AG,
		lizensiert unter CC-BY-4.0