Commit 836cd8a3 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

show exit direction in wagon order

parent 99587069
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -182,6 +182,22 @@ sub wagenreihung {
				}
			}

			my $exit_dir = 'unknown';
			if ( defined $wr->direction and $exit_side ) {
				if ( $wr->direction == 0 and $exit_side eq 'l' ) {
					$exit_dir = 'left';
				}
				elsif ( $wr->direction == 0 and $exit_side eq 'r' ) {
					$exit_dir = 'right';
				}
				elsif ( $wr->direction == 100 and $exit_side eq 'l' ) {
					$exit_dir = 'right';
				}
				elsif ( $wr->direction == 100 and $exit_side eq 'r' ) {
					$exit_dir = 'left';
				}
			}

			$wref = b64_encode( encode_json($wref) );

			$self->render(
@@ -192,6 +208,7 @@ sub wagenreihung {
				train_no  => $train,
				wr        => $wr,
				wref      => $wref,
				exit_dir  => $exit_dir,
				hide_opts => 1,
			);
		}
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+4 −4
Original line number Diff line number Diff line
@@ -2,12 +2,12 @@
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(/static/v44/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
  src: url(/static/v45/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
  src: local('Material Icons'),
       local('MaterialIcons-Regular'),
       url(/static/v44/fonts/MaterialIcons-Regular.woff2) format('woff2'),
       url(/static/v44/fonts/MaterialIcons-Regular.woff) format('woff'),
       url(/static/v44/fonts/MaterialIcons-Regular.ttf) format('truetype');
       url(/static/v45/fonts/MaterialIcons-Regular.woff2) format('woff2'),
       url(/static/v45/fonts/MaterialIcons-Regular.woff) format('woff'),
       url(/static/v45/fonts/MaterialIcons-Regular.ttf) format('truetype');
}

.material-icons {
+0 −0

File moved.

Loading