diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 1b81f8861e62d5c7693d2b5a018e2d2cd3dcbf3f..c594e96f8efd2373418b2dd7b91528292c901831 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1178,6 +1178,12 @@ sub startup { wagons => [@wagons], } ); + if ( $group->{fahrzeuggruppebezeichnung} + and $group->{fahrzeuggruppebezeichnung} eq + 'ICE0304' ) + { + $data->{wagonorder_pride} = 1; + } } $self->in_transit->update_data( uid => $uid, diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 0ead2409541cb578ffe5a9065e60ebce208e87ad..b8c8c6bdcf0b1ae65720a6498fa6a8393b151c34 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -3,7 +3,9 @@ <div class="card"> <div class="card-content"> <i class="material-icons small right sync-failed-marker grey-text" style="display: none;">sync_problem</i> - <span class="card-title">Eingecheckt in <%= $journey->{train_type} %> <%= $journey->{train_no} %></span> + <span class="card-title"> + Eingecheckt in <%= $journey->{train_type} %> <%= $journey->{train_no} %> + </span> % if ($journey->{comment}) { <p><%= $journey->{comment} %></p> % } diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index e08775ce3b88dd985a24fecb74fe219d7cf20a75..94ebf4488bf4f042008c79260dc25a64d0a1af0e 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -12,12 +12,17 @@ <p>„<%= $journey->{comment} %>“</p> % } <p> - % if ($journey->{train_line}) { - <div class="center-align"><b><%= $journey->{train_type} %> <%= $journey->{train_line} %></b> <%= $journey->{train_no} %></div> - % } - % else { - <div class="center-align"><b><%= $journey->{train_type} %> <%= $journey->{train_no} %></b></div> - % } + <div class="center-align"> + % if ($journey->{train_line}) { + <b><%= $journey->{train_type} %> <%= $journey->{train_line} %></b> <%= $journey->{train_no} %> + % } + % else { + <b><%= $journey->{train_type} %> <%= $journey->{train_no} %></b> + % } + % if ($journey->{extra_data}{wagonorder_pride}) { + ðŸ³ï¸â€ðŸŒˆ + % } + </div> <div class="center-align countdown" data-duration="<%= $journey->{journey_duration} // 0 %>" % if (param('token')) {