Use "Steig" rather than "Gleis" for bus platforms

This commit is contained in:
Birte Kristina Friesel 2024-08-30 16:55:13 +02:00
parent 4d159fe378
commit 99a8956032
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA
3 changed files with 20 additions and 7 deletions

View file

@ -265,6 +265,11 @@ sub postprocess {
$ret->{extra_data} = $ret->{data}; $ret->{extra_data} = $ret->{data};
$ret->{comment} = $ret->{user_data}{comment}; $ret->{comment} = $ret->{user_data}{comment};
$ret->{platform_type} = 'Gleis';
if ( $ret->{train_type} =~ m{ ast | bus | ruf }ix ) {
$ret->{platform_type} = 'Steig';
}
$ret->{visibility_str} $ret->{visibility_str}
= $ret->{visibility} = $ret->{visibility}
? $visibility_itoa{ $ret->{visibility} } ? $visibility_itoa{ $ret->{visibility} }

View file

@ -42,13 +42,13 @@
% } % }
% if ($journey->{arrival_countdown} < (60 * 15) and $journey->{arr_platform}) { % if ($journey->{arrival_countdown} < (60 * 15) and $journey->{arr_platform}) {
% if ($journey->{arr_direction} and $journey->{arr_direction} eq 'r') { % if ($journey->{arr_direction} and $journey->{arr_direction} eq 'r') {
<br/>Gleis <%= $journey->{arr_platform} %> ▶ <br/><%= $journey->{platform_type} %> <%= $journey->{arr_platform} %> ▶
% } % }
% elsif ($journey->{arr_direction} and $journey->{arr_direction} eq 'l') { % elsif ($journey->{arr_direction} and $journey->{arr_direction} eq 'l') {
<br/>◀ Gleis <%= $journey->{arr_platform} %> <br/>◀ <%= $journey->{platform_type} %> <%= $journey->{arr_platform} %>
% } % }
% else { % else {
<br/>auf Gleis <%= $journey->{arr_platform} %> <br/>auf <%= $journey->{platform_type} %> <%= $journey->{arr_platform} %>
% } % }
% } % }
% } % }
@ -57,13 +57,13 @@
% } % }
% if ($journey->{departure_countdown} > 0 and $journey->{dep_platform}) { % if ($journey->{departure_countdown} > 0 and $journey->{dep_platform}) {
% if ($journey->{dep_direction} and $journey->{dep_direction} eq 'r') { % if ($journey->{dep_direction} and $journey->{dep_direction} eq 'r') {
<br/>Gleis <%= $journey->{dep_platform} %> ▶ <br/><%= $journey->{platform_type} %> <%= $journey->{dep_platform} %> ▶
% } % }
% elsif ($journey->{dep_direction} and $journey->{dep_direction} eq 'l') { % elsif ($journey->{dep_direction} and $journey->{dep_direction} eq 'l') {
<br/>◀ Gleis <%= $journey->{dep_platform} %> <br/>◀ <%= $journey->{platform_type} %> <%= $journey->{dep_platform} %>
% } % }
% else { % else {
<br/>von Gleis <%= $journey->{dep_platform} %> <br/>von <%= $journey->{platform_type} %> <%= $journey->{dep_platform} %>
% } % }
% } % }
% if (my $wr = $journey->{wagonorder}) { % if (my $wr = $journey->{wagonorder}) {

View file

@ -35,7 +35,15 @@
</a> </a>
<span class="connect-platform-wrapper"> <span class="connect-platform-wrapper">
% if ($train->platform) { % if ($train->platform) {
<span>Gleis <%= $train->platform %></span> <span>
% if (($train->type // q{}) =~ m{ ast | bus | ruf }ix) {
Steig
% }
% else {
Gleis
% }
%= $train->platform
</span>
% } % }
<span class="dep-line <%= $train->type // q{} %>"> <span class="dep-line <%= $train->type // q{} %>">
%= $train->line %= $train->line