summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-30 16:55:13 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-30 16:55:13 +0200
commit99a89560321cb6981f06c5ea783b11acaec98ada (patch)
treeb2f10ca4ea0bb9bde351a797dae5e1ae6150726a /templates
parent4d159fe3785a5a131d36b8ec8676b5abf7eb2fb8 (diff)
Use "Steig" rather than "Gleis" for bus platforms2.8.36
Diffstat (limited to 'templates')
-rw-r--r--templates/_checked_in.html.ep12
-rw-r--r--templates/_connections_hafas.html.ep10
2 files changed, 15 insertions, 7 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index 9e69218..797ff57 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -42,13 +42,13 @@
% }
% if ($journey->{arrival_countdown} < (60 * 15) and $journey->{arr_platform}) {
% 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') {
- <br/>◀ Gleis <%= $journey->{arr_platform} %>
+ <br/>◀ <%= $journey->{platform_type} %> <%= $journey->{arr_platform} %>
% }
% 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->{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') {
- <br/>◀ Gleis <%= $journey->{dep_platform} %>
+ <br/>◀ <%= $journey->{platform_type} %> <%= $journey->{dep_platform} %>
% }
% else {
- <br/>von Gleis <%= $journey->{dep_platform} %>
+ <br/>von <%= $journey->{platform_type} %> <%= $journey->{dep_platform} %>
% }
% }
% if (my $wr = $journey->{wagonorder}) {
diff --git a/templates/_connections_hafas.html.ep b/templates/_connections_hafas.html.ep
index 43198e2..3b995b5 100644
--- a/templates/_connections_hafas.html.ep
+++ b/templates/_connections_hafas.html.ep
@@ -35,7 +35,15 @@
</a>
<span class="connect-platform-wrapper">
% 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{} %>">
%= $train->line