Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
travelynx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
travelynx
Commits
99a89560
Unverified
Commit
99a89560
authored
7 months ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Use "Steig" rather than "Gleis" for bus platforms
parent
4d159fe3
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/Travelynx/Model/InTransit.pm
+5
-0
5 additions, 0 deletions
lib/Travelynx/Model/InTransit.pm
templates/_checked_in.html.ep
+6
-6
6 additions, 6 deletions
templates/_checked_in.html.ep
templates/_connections_hafas.html.ep
+9
-1
9 additions, 1 deletion
templates/_connections_hafas.html.ep
with
20 additions
and
7 deletions
lib/Travelynx/Model/InTransit.pm
+
5
−
0
View file @
99a89560
...
...
@@ -265,6 +265,11 @@ sub postprocess {
$ret
->
{
extra_data
}
=
$ret
->
{
data
};
$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
}
?
$visibility_itoa
{
$ret
->
{
visibility
}
}
...
...
This diff is collapsed.
Click to expand it.
templates/_checked_in.html.ep
+
6
−
6
View file @
99a89560
...
...
@@ -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}) {
...
...
This diff is collapsed.
Click to expand it.
templates/_connections_hafas.html.ep
+
9
−
1
View file @
99a89560
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment