Loading templates/wagenreihung.html.ep +28 −2 Original line number Diff line number Diff line <div class="container"> </div> <div class="container"> <div style="position: relative; width: 100%; height: 60ex;"> % for my $section ($wr->sections) { Loading @@ -10,6 +13,9 @@ % my $bg = ''; % if ($wagon->is_first_class) { % $bg = 'background-color: #ffff99;'; % } % if ($wagon->is_locomotive or $wagon->is_powercar) { % $bg = 'background-color: #cccccc;'; % } <div style="position: absolute; left: 6em; top: <%= $wagon->{position}{start_percent} %>%; bottom: <%= 100 - $wagon->{position}{end_percent} %>%;"> Loading @@ -33,11 +39,31 @@ </div> <div style="position: absolute; left: 7em; right: 0em; top: <%= $wagon->{position}{start_percent} %>%; bottom: <%= 100 - $wagon->{position}{end_percent} %>%;"> %= $wagon->type % if ($wagon->has_accessibility) { ♿ % } % if ($wagon->has_bistro) { 🍴 % } % if ($wagon->is_interregio) { Interregio % } % if ($wagon->has_compartments) { Abteilwagen Abteil % } <span style="color: #999999;"> %= $wagon->type </span> </div> % } </div> <div> % if ($wr->train_type ne 'ICE') { Angaben bitte mit Vorsicht genießen. Eigentlich werden vom Backend nur ICE unterstützt. % } % else { Angaben ohne Gewähr – Echtzeitdaten sind möglicherweise nicht berücksichtigt. % } </div> Loading Loading
templates/wagenreihung.html.ep +28 −2 Original line number Diff line number Diff line <div class="container"> </div> <div class="container"> <div style="position: relative; width: 100%; height: 60ex;"> % for my $section ($wr->sections) { Loading @@ -10,6 +13,9 @@ % my $bg = ''; % if ($wagon->is_first_class) { % $bg = 'background-color: #ffff99;'; % } % if ($wagon->is_locomotive or $wagon->is_powercar) { % $bg = 'background-color: #cccccc;'; % } <div style="position: absolute; left: 6em; top: <%= $wagon->{position}{start_percent} %>%; bottom: <%= 100 - $wagon->{position}{end_percent} %>%;"> Loading @@ -33,11 +39,31 @@ </div> <div style="position: absolute; left: 7em; right: 0em; top: <%= $wagon->{position}{start_percent} %>%; bottom: <%= 100 - $wagon->{position}{end_percent} %>%;"> %= $wagon->type % if ($wagon->has_accessibility) { ♿ % } % if ($wagon->has_bistro) { 🍴 % } % if ($wagon->is_interregio) { Interregio % } % if ($wagon->has_compartments) { Abteilwagen Abteil % } <span style="color: #999999;"> %= $wagon->type </span> </div> % } </div> <div> % if ($wr->train_type ne 'ICE') { Angaben bitte mit Vorsicht genießen. Eigentlich werden vom Backend nur ICE unterstützt. % } % else { Angaben ohne Gewähr – Echtzeitdaten sind möglicherweise nicht berücksichtigt. % } </div> Loading