unified train farbtupferl

(cherry picked from commit 20e8fd39851146eb4fb3cc8cb1f7ba7fc4086d8d)
Signed-off-by: Birte Kristina Friesel <derf@finalrewind.org>
This commit is contained in:
Cassidy Dingenskirchen 2024-01-22 19:13:46 +01:00 committed by Birte Kristina Friesel
parent dbbeaeea96
commit 824fb6973e
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA
6 changed files with 18 additions and 17 deletions

View file

@ -118,7 +118,7 @@ ul.suggestions {
} }
} }
} }
.departures .dep-line { .dep-line {
text-align: center; text-align: center;
padding: .2rem; padding: .2rem;
color: white; color: white;

View file

@ -7,12 +7,7 @@
<span class="card-title center-align">Ziel wählen</span> <span class="card-title center-align">Ziel wählen</span>
% } % }
<span class="card-title center-align"> <span class="card-title center-align">
% if ($journey->{train_line}) { %= include '_format_train', journey => $journey
<b><%= $journey->{train_type} %> <%= $journey->{train_line} %></b> <%= $journey->{train_no} %>
% }
% else {
<%= $journey->{train_type} %> <%= $journey->{train_no} %>
% }
</span> </span>
% if ($journey->{comment}) { % if ($journey->{comment}) {
<p><%= $journey->{comment} %></p> <p><%= $journey->{comment} %></p>

View file

@ -1,7 +1,8 @@
<div class="card"> <div class="card">
<div class="card-content"> <div class="card-content">
<span class="card-title">Ausgecheckt</span> <span class="card-title">Ausgecheckt</span>
<p>Aus <%= $journey->{train_type} %> <%= $journey->{train_no} %> <p>Aus
%= include '_format_train', journey => $journey
bis <a href="/s/<%= $journey->{arr_eva} %>?hafas=<%= $journey->{train_id} =~ m{[|]} ? 1 : 0 %>"><%= $journey->{arr_name} %></a></p> bis <a href="/s/<%= $journey->{arr_eva} %>?hafas=<%= $journey->{train_id} =~ m{[|]} ? 1 : 0 %>"><%= $journey->{arr_name} %></a></p>
% if (@{stash('connections_iris') // [] } or @{stash('connections_hafas') // []}) { % if (@{stash('connections_iris') // [] } or @{stash('connections_hafas') // []}) {
<span class="card-title" style="margin-top: 2ex;">Verbindungen</span> <span class="card-title" style="margin-top: 2ex;">Verbindungen</span>

View file

@ -1,9 +1,10 @@
% if ($journey->{extra_data}{wagonorder_pride}) { % if ($journey->{extra_data}{wagonorder_pride}) {
🏳️‍🌈 🏳️‍🌈
% } % }
<span class="dep-line <%= $journey->{train_type} // q{} %>">
<%= $journey->{train_type} %>
<%= $journey->{train_line} // $journey->{train_no}%>
</span>
% if ($journey->{train_line}) { % if ($journey->{train_line}) {
<b><%= $journey->{train_type} %> <%= $journey->{train_line} %></b> <%= $journey->{train_no} %> <%= $journey->{train_no} %>
% }
% else {
<%= $journey->{train_type} %> <%= $journey->{train_no} %>
% } % }

View file

@ -17,7 +17,11 @@
% } % }
<tr> <tr>
<td><%= $travel->{sched_departure}->strftime($date_format) %></td> <td><%= $travel->{sched_departure}->strftime($date_format) %></td>
<td><a href="<%= $detail_link %>"><%= $travel->{type} %> <%= $travel->{line} // $travel->{no} %></a></td> <td><a href="<%= $detail_link %>">
<span class="dep-line <%= $travel->{type} // q{} %>">
<%= $travel->{type} %> <%= $travel->{line} // $travel->{no}%>
</span>
</a></td>
<td> <td>
<a href="<%= $detail_link %>" class="unmarked"> <a href="<%= $detail_link %>" class="unmarked">
% if (param('cancelled')) { % if (param('cancelled')) {

View file

@ -25,7 +25,7 @@
<div class="card-content"> <div class="card-content">
<span class="card-title">Ausfall dokumentieren</span> <span class="card-title">Ausfall dokumentieren</span>
<p>Prinzipiell wärest du nun eingecheckt in <p>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. ab <%= $status->{dep_name} %>, doch diese Fahrt fällt aus.
</p> </p>
<p>Falls du den Ausfall z.B. für Fahrgastrechte <p>Falls du den Ausfall z.B. für Fahrgastrechte
@ -75,7 +75,7 @@
% } % }
</div> </div>
</div> </div>
<h1>Letzte Fahrten</h1> <h2 style="margin-left: 0.75rem;">Letzte Fahrten</h2>
%= include '_history_trains', date_format => '%d.%m', journeys => [journeys->get(uid => current_user->{id}, limit => 5, with_datetime => 1)]; %= include '_history_trains', date_format => '%d.%m', journeys => [journeys->get(uid => current_user->{id}, limit => 5, with_datetime => 1)];
% } % }
% else { % else {