diff --git a/sass/src/common/local.scss b/sass/src/common/local.scss index 2ca8f5568860e90cc9639aa80d0339b22f1c4710..9bdcbded9e1636c1906a47febe1f17884886fdbd 100644 --- a/sass/src/common/local.scss +++ b/sass/src/common/local.scss @@ -118,7 +118,7 @@ ul.suggestions { } } } -.departures .dep-line { +.dep-line { text-align: center; padding: .2rem; color: white; @@ -131,7 +131,7 @@ ul.suggestions { width: fit-content; min-width: 6ch; margin: 0 auto; - + &.Bus, &.RUF, &.AST { background-color: #a3167e; border-radius: 5rem; diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 9621ba622f61aeab4664d0b64664992f62de5602..1a58091948a42271aa05d12e10d1cd311bc5ba87 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -7,12 +7,7 @@ Ziel wählen % } - % if ($journey->{train_line}) { - <%= $journey->{train_type} %> <%= $journey->{train_line} %> <%= $journey->{train_no} %> - % } - % else { - <%= $journey->{train_type} %> <%= $journey->{train_no} %> - % } + %= include '_format_train', journey => $journey % if ($journey->{comment}) {
<%= $journey->{comment} %>
diff --git a/templates/_checked_out.html.ep b/templates/_checked_out.html.ep index 98db6604c566750aa258441e3a5982c596d51327..5a944dc0cead90b21336e3987c62b376763f2aae 100644 --- a/templates/_checked_out.html.ep +++ b/templates/_checked_out.html.ep @@ -1,7 +1,8 @@Aus <%= $journey->{train_type} %> <%= $journey->{train_no} %> +
Aus + %= include '_format_train', journey => $journey bis <%= $journey->{arr_name} %>
% if (@{stash('connections_iris') // [] } or @{stash('connections_hafas') // []}) { Verbindungen diff --git a/templates/_format_train.html.ep b/templates/_format_train.html.ep index 5b616827884cd6bc7a5931f8db77d53438c2e771..1d6acaaaf0cf4ea6d2ca162c98b750f87c5d90f3 100644 --- a/templates/_format_train.html.ep +++ b/templates/_format_train.html.ep @@ -1,9 +1,10 @@ % if ($journey->{extra_data}{wagonorder_pride}) { 🏳️🌈 % } + + <%= $journey->{train_type} %> + <%= $journey->{train_line} // $journey->{train_no}%> + % if ($journey->{train_line}) { - <%= $journey->{train_type} %> <%= $journey->{train_line} %> <%= $journey->{train_no} %> -% } -% else { - <%= $journey->{train_type} %> <%= $journey->{train_no} %> + <%= $journey->{train_no} %> % } diff --git a/templates/_history_trains.html.ep b/templates/_history_trains.html.ep index 6bcd8cdf83233b70ca847bb407d1b56e344965d6..51f776cf45e82784cbb50216affbe4fe7f27ec7e 100644 --- a/templates/_history_trains.html.ep +++ b/templates/_history_trains.html.ep @@ -17,7 +17,11 @@ % }Prinzipiell wärest du nun eingecheckt in - <%= $status->{train_type} %> <%= $status->{train_no} %> + %= include '_format_train', journey => $status ab <%= $status->{dep_name} %>, doch diese Fahrt fällt aus. -
+Falls du den Ausfall z.B. für Fahrgastrechte dokumentieren möchtest, wähle bitte jetzt das vorgesehene Ziel aus.
@@ -75,7 +75,7 @@ % }