2022-07-11 20:09:26 +00:00
|
|
|
|
% my $user = current_user();
|
2019-08-23 20:54:59 +00:00
|
|
|
|
<div class="autorefresh">
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-content">
|
|
|
|
|
<i class="material-icons small right sync-failed-marker grey-text" style="display: none;">sync_problem</i>
|
2023-07-09 08:58:11 +00:00
|
|
|
|
% if (not $journey->{arr_name}) {
|
|
|
|
|
<span class="card-title center-align">Ziel wählen</span>
|
|
|
|
|
% }
|
2023-06-04 16:21:36 +00:00
|
|
|
|
<span class="card-title center-align">
|
|
|
|
|
% if ($journey->{train_line}) {
|
|
|
|
|
<b><%= $journey->{train_type} %> <%= $journey->{train_line} %></b> <%= $journey->{train_no} %>
|
|
|
|
|
% }
|
|
|
|
|
% else {
|
|
|
|
|
<%= $journey->{train_type} %> <%= $journey->{train_no} %>
|
|
|
|
|
% }
|
2023-05-18 06:25:19 +00:00
|
|
|
|
</span>
|
2019-12-06 20:40:51 +00:00
|
|
|
|
% if ($journey->{comment}) {
|
2019-12-06 20:42:26 +00:00
|
|
|
|
<p><%= $journey->{comment} %></p>
|
2019-12-06 20:40:51 +00:00
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
<p>
|
|
|
|
|
<div class="center-align countdown"
|
2019-10-29 20:18:46 +00:00
|
|
|
|
data-journey="<%= $journey->{real_departure}->epoch %>;<%= <%= $journey->{real_arrival}->epoch %>"
|
|
|
|
|
data-route="<%= journey_to_ajax_route($journey) %>"
|
|
|
|
|
data-dest="<%= $journey->{arr_name} %>"
|
|
|
|
|
>
|
2023-07-07 20:25:12 +00:00
|
|
|
|
% if ($journey->{boarding_countdown} > 60) {
|
|
|
|
|
Einfahrt in <%= journeys->min_to_human(int($journey->{boarding_countdown} / 60)) %><br/>
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% }
|
|
|
|
|
% elsif ($journey->{boarding_countdown} > 0) {
|
|
|
|
|
Zug fährt ein<br/>
|
2019-04-24 05:50:31 +00:00
|
|
|
|
% }
|
2023-07-07 20:25:12 +00:00
|
|
|
|
% if ($journey->{departure_countdown} > 60) {
|
|
|
|
|
Abfahrt in <%= journeys->min_to_human(int($journey->{departure_countdown} / 60)) %>
|
2019-04-23 20:27:13 +00:00
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% elsif ($journey->{departure_countdown} > 0) {
|
|
|
|
|
Abfahrt in weniger als einer Minute
|
|
|
|
|
% }
|
|
|
|
|
% elsif (defined $journey->{arrival_countdown}) {
|
|
|
|
|
% if ($journey->{arrival_countdown} > 60) {
|
2023-07-02 08:48:34 +00:00
|
|
|
|
Ankunft in <%= journeys->min_to_human(int($journey->{arrival_countdown} / 60)) %>
|
2019-06-22 15:02:04 +00:00
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% elsif ($journey->{arrival_countdown} > 0) {
|
|
|
|
|
Ankunft in weniger als einer Minute
|
2019-06-22 15:02:04 +00:00
|
|
|
|
% }
|
|
|
|
|
% else {
|
2019-08-23 20:54:59 +00:00
|
|
|
|
Ziel erreicht
|
|
|
|
|
% }
|
|
|
|
|
% 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} %> ▶
|
|
|
|
|
% }
|
|
|
|
|
% elsif ($journey->{arr_direction} and $journey->{arr_direction} eq 'l') {
|
|
|
|
|
<br/>◀ Gleis <%= $journey->{arr_platform} %>
|
|
|
|
|
% }
|
|
|
|
|
% else {
|
|
|
|
|
<br/>auf Gleis <%= $journey->{arr_platform} %>
|
|
|
|
|
% }
|
2019-06-22 15:02:04 +00:00
|
|
|
|
% }
|
2019-05-18 15:10:53 +00:00
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% elsif ($journey->{arr_name}) {
|
|
|
|
|
Ankunft in mehr als zwei Stunden
|
2019-08-03 10:35:47 +00:00
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% if ($journey->{departure_countdown} > 0 and $journey->{dep_platform}) {
|
|
|
|
|
% if ($journey->{dep_direction} and $journey->{dep_direction} eq 'r') {
|
|
|
|
|
<br/>Gleis <%= $journey->{dep_platform} %> ▶
|
2019-08-03 13:09:15 +00:00
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% elsif ($journey->{dep_direction} and $journey->{dep_direction} eq 'l') {
|
|
|
|
|
<br/>◀ Gleis <%= $journey->{dep_platform} %>
|
2019-06-24 16:02:45 +00:00
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% else {
|
|
|
|
|
<br/>von Gleis <%= $journey->{dep_platform} %>
|
2019-05-03 08:49:14 +00:00
|
|
|
|
% }
|
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% if (my $wr = $journey->{wagonorder}) {
|
|
|
|
|
<br/>
|
|
|
|
|
% my @wagons = $wr->wagons;
|
|
|
|
|
% my $direction = $wr->direction == 100 ? '→' : '←';
|
|
|
|
|
% if ($journey->{dep_direction}) {
|
|
|
|
|
% $direction = $journey->{dep_direction} eq 'l' ? '◀' : '▶';
|
|
|
|
|
% if (($journey->{dep_direction} eq 'l' ? 0 : 100) != $wr->direction) {
|
|
|
|
|
% @wagons = reverse @wagons;
|
2019-05-31 18:18:22 +00:00
|
|
|
|
% }
|
|
|
|
|
% }
|
2022-08-19 15:21:41 +00:00
|
|
|
|
<a href="https://bahn.expert/details/<%= $journey->{train_type} %>%20<%= $journey->{train_no} %>/<%= DateTime->now(time_zone => 'Europe/Berlin')->iso8601 %>?station=<%= $journey->{dep_eva} %>">
|
2019-08-23 20:54:59 +00:00
|
|
|
|
%= $direction
|
|
|
|
|
% for my $wagon (@wagons) {
|
|
|
|
|
% if (not ($wagon->is_locomotive or $wagon->is_powercar)) {
|
|
|
|
|
%= $wagon->number || $wagon->type
|
2019-05-31 18:18:22 +00:00
|
|
|
|
% }
|
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
%= $direction
|
|
|
|
|
</a>
|
2019-05-31 18:18:22 +00:00
|
|
|
|
% }
|
|
|
|
|
</div>
|
2019-08-23 20:54:59 +00:00
|
|
|
|
<div class="progress" style="height: 1ex;">
|
|
|
|
|
<div class="determinate" style="width: <%= sprintf('%.2f', 100 * ($journey->{journey_completion} // 0)); %>%;"></div>
|
2019-05-03 08:49:14 +00:00
|
|
|
|
</div>
|
2019-08-23 20:54:59 +00:00
|
|
|
|
</p>
|
|
|
|
|
% if ($journey->{arr_name}) {
|
|
|
|
|
<p>
|
|
|
|
|
<div style="float: left;">
|
|
|
|
|
<b><%= $journey->{dep_name} %></b><br/>
|
|
|
|
|
<b><%= $journey->{real_departure}->strftime('%H:%M') %></b>
|
|
|
|
|
% if ($journey->{real_departure}->epoch != $journey->{sched_departure}->epoch) {
|
|
|
|
|
(<%= sprintf('%+d', ($journey->{real_departure}->epoch - $journey->{sched_departure}->epoch)/60) %>)
|
|
|
|
|
% }
|
|
|
|
|
</div>
|
|
|
|
|
<div style="float: right; text-align: right;">
|
2022-07-11 20:09:26 +00:00
|
|
|
|
% if ($user->{sb_template}) {
|
2022-07-16 18:34:11 +00:00
|
|
|
|
<b><a href="<%= resolve_sb_template($user->{sb_template}, name => $journey->{arr_name}, eva => $journey->{arr_eva}, tt => $journey->{train_type} // q{x}, tn => $journey->{train_no}, id => $journey->{train_id}) %>" class="unmarked"><%= $journey->{arr_name} %></a></b><br/>
|
2022-07-11 20:09:26 +00:00
|
|
|
|
% }
|
|
|
|
|
% else {
|
|
|
|
|
<b><%= $journey->{arr_name} %></b><br/>
|
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% if ($journey->{real_arrival}->epoch) {
|
|
|
|
|
<b><%= $journey->{real_arrival}->strftime('%H:%M') %></b>
|
|
|
|
|
% if ($journey->{real_arrival}->epoch != $journey->{sched_arrival}->epoch) {
|
|
|
|
|
(<%= sprintf('%+d', ($journey->{real_arrival}->epoch - $journey->{sched_arrival}->epoch)/60) %>)
|
|
|
|
|
% }
|
|
|
|
|
% }
|
|
|
|
|
% else {
|
|
|
|
|
noch nicht bekannt
|
2019-05-31 18:18:22 +00:00
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
</div>
|
2019-10-29 20:18:46 +00:00
|
|
|
|
<div class="center-align hide-on-small-only next-stop">
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% for my $station (@{$journey->{route_after}}) {
|
|
|
|
|
% if ($station->[0] eq $journey->{arr_name}) {
|
|
|
|
|
% last;
|
|
|
|
|
% }
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% if (($station->[2]{rt_arr_countdown} // 0) > 0 and $station->[2]{rt_arr}) {
|
|
|
|
|
<%= $station->[0] %><br/><%= $station->[2]{rt_arr}->strftime('%H:%M') %>
|
|
|
|
|
% if ($station->[2]{sched_arr} and $station->[2]{sched_arr}->epoch != $station->[2]{rt_arr}->epoch) {
|
|
|
|
|
%= sprintf('(%+d)', ($station->[2]{rt_arr}->epoch - $station->[2]{sched_arr}->epoch ) / 60);
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% }
|
|
|
|
|
% last;
|
|
|
|
|
% }
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% if (($station->[2]{rt_dep_countdown} // 0) > 0 and $station->[2]{rt_arr} and $station->[2]{rt_dep}) {
|
2019-08-23 20:54:59 +00:00
|
|
|
|
<%= $station->[0] %><br/>
|
2023-01-15 15:37:32 +00:00
|
|
|
|
<%= $station->[2]{rt_arr}->strftime('%H:%M') %> →
|
|
|
|
|
<%= $station->[2]{rt_dep}->strftime('%H:%M') %>
|
|
|
|
|
% if ($station->[2]{sched_dep} and $station->[2]{sched_dep}->epoch != $station->[2]{rt_dep}->epoch) {
|
|
|
|
|
%= sprintf('(%+d)', ($station->[2]{rt_dep}->epoch - $station->[2]{sched_dep}->epoch ) / 60);
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% }
|
|
|
|
|
% last;
|
2019-05-31 18:18:22 +00:00
|
|
|
|
% }
|
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div style="clear: both;">
|
|
|
|
|
</div>
|
2019-10-29 20:18:46 +00:00
|
|
|
|
<div class="hide-on-med-and-up next-stop" style="margin-top: 2ex;">
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% for my $station (@{$journey->{route_after}}) {
|
|
|
|
|
% if ($station->[0] eq $journey->{arr_name}) {
|
|
|
|
|
% last;
|
|
|
|
|
% }
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% if (($station->[2]{rt_arr_countdown} // 0) > 0 and $station->[2]{rt_arr}) {
|
|
|
|
|
<%= $station->[0] %><br/><%= $station->[2]{rt_arr}->strftime('%H:%M') %>
|
|
|
|
|
% if ($station->[2]{sched_arr} and $station->[2]{sched_arr}->epoch != $station->[2]{rt_arr}->epoch) {
|
|
|
|
|
%= sprintf('(%+d)', ($station->[2]{rt_arr}->epoch - $station->[2]{sched_arr}->epoch ) / 60);
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% }
|
|
|
|
|
% last;
|
|
|
|
|
% }
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% if (($station->[2]{rt_dep_countdown} // 0) > 0 and $station->[2]{rt_arr} and $station->[2]{rt_dep}) {
|
2019-08-23 20:54:59 +00:00
|
|
|
|
<%= $station->[0] %><br/>
|
2023-01-15 15:37:32 +00:00
|
|
|
|
<%= $station->[2]{rt_arr}->strftime('%H:%M') %> →
|
|
|
|
|
<%= $station->[2]{rt_dep}->strftime('%H:%M') %>
|
|
|
|
|
% if ($station->[2]{sched_dep} and $station->[2]{sched_dep}->epoch != $station->[2]{rt_dep}->epoch) {
|
|
|
|
|
%= sprintf('(%+d)', ($station->[2]{rt_dep}->epoch - $station->[2]{sched_dep}->epoch ) / 60);
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% }
|
|
|
|
|
% last;
|
2019-05-31 18:18:22 +00:00
|
|
|
|
% }
|
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
</div>
|
|
|
|
|
</p>
|
|
|
|
|
% }
|
2020-02-12 19:38:24 +00:00
|
|
|
|
% if ($journey->{extra_data}{cancelled_destination}) {
|
|
|
|
|
<p style="margin-bottom: 2ex;">
|
2020-02-13 17:35:42 +00:00
|
|
|
|
Der Halt an der Zielstation <b><%=
|
|
|
|
|
$journey->{extra_data}{cancelled_destination} %></b> entfällt.
|
|
|
|
|
Die zugehörige Fahrt wurde bereits als ausgefallen eingetragen.
|
|
|
|
|
Bitte wähle ein neues Reiseziel.
|
2020-02-12 19:38:24 +00:00
|
|
|
|
</p>
|
|
|
|
|
% }
|
2020-01-09 17:13:37 +00:00
|
|
|
|
% if (@{$journey->{messages} // []} or @{$journey->{extra_data}{qos_msg} // []}) {
|
2019-08-23 20:54:59 +00:00
|
|
|
|
<p style="margin-bottom: 2ex;">
|
|
|
|
|
<ul>
|
|
|
|
|
% for my $message (reverse @{$journey->{messages} // []}) {
|
|
|
|
|
% if ($journey->{sched_departure}->epoch - $message->[0]->epoch < 1800) {
|
|
|
|
|
<li> <i class="material-icons tiny">warning</i> <%= $message->[0]->strftime('%H:%M') %>: <%= $message->[1] %></li>
|
|
|
|
|
% }
|
2019-04-24 12:58:08 +00:00
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% if ($journey->{departure_countdown} > 0) {
|
|
|
|
|
% for my $message (@{$journey->{extra_data}{qos_msg} // []}) {
|
|
|
|
|
<li> <i class="material-icons tiny">info</i> <%= $message->[0]->strftime('%H:%M') %>: <%= $message->[1] %></li>
|
|
|
|
|
% }
|
2019-06-04 19:12:36 +00:00
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
</ul>
|
|
|
|
|
</p>
|
2019-05-19 06:55:23 +00:00
|
|
|
|
% }
|
2022-07-27 11:54:20 +00:00
|
|
|
|
% if (my @connections = @{stash('connections') // []}) {
|
|
|
|
|
<span class="card-title" style="margin-top: 2ex;">Verbindungen</span>
|
|
|
|
|
% if ($journey->{arrival_countdown} < 0) {
|
|
|
|
|
<p>Zug auswählen zum Einchecken mit Zielwahl.</p>
|
2019-04-23 20:27:13 +00:00
|
|
|
|
% }
|
2022-07-27 11:54:20 +00:00
|
|
|
|
%= include '_connections', connections => \@connections, checkin_from => $journey->{arrival_countdown} < 0 ? $journey->{arr_ds100} : undef;
|
2019-05-12 09:44:28 +00:00
|
|
|
|
% }
|
2022-09-24 16:53:04 +00:00
|
|
|
|
% if (my @transit_fyi = @{stash('transit_fyi') // []}) {
|
|
|
|
|
<span class="card-title" style="margin-top: 2ex;">Nahverkehr</span>
|
|
|
|
|
% if ($journey->{arrival_countdown} < 0) {
|
|
|
|
|
<p>Nur zur Information – kein Checkin möglich.</p>
|
|
|
|
|
% }
|
|
|
|
|
%= include '_transit_fyi', transit_fyi => \@transit_fyi;
|
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% if (defined $journey->{arrival_countdown} and $journey->{arrival_countdown} <= 0) {
|
|
|
|
|
<p style="margin-top: 2ex;">
|
|
|
|
|
Der automatische Checkout erfolgt wegen gelegentlich veralteter
|
2019-08-25 07:00:59 +00:00
|
|
|
|
IRIS-Daten erst etwa zehn Minuten nach der Ankunft.
|
2019-08-23 20:54:59 +00:00
|
|
|
|
</p>
|
|
|
|
|
% }
|
|
|
|
|
% elsif (not $journey->{arr_name}) {
|
2022-07-13 19:35:59 +00:00
|
|
|
|
<p>
|
|
|
|
|
% for my $station (@{$journey->{route_after}}) {
|
|
|
|
|
<a class="tablerow action-checkout" data-station="<%= $station->[0] %>">
|
|
|
|
|
<span><%= $station->[0] %></span>
|
2022-11-12 10:10:58 +00:00
|
|
|
|
<span>
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% if ($station->[2]{load}{SECOND}) {
|
|
|
|
|
% my ($first, $second) = load_icon($station->[2]{load});
|
2022-11-12 19:19:36 +00:00
|
|
|
|
<i class="material-icons tiny" aria-hidden="true"><%= $first %></i> <i class="material-icons tiny" aria-hidden="true"><%= $second %></i>
|
2022-11-12 10:10:58 +00:00
|
|
|
|
% }
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% if ($station->[2]{isCancelled}) {
|
2022-11-12 10:10:58 +00:00
|
|
|
|
entfällt
|
2022-07-13 19:35:59 +00:00
|
|
|
|
% }
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% elsif ($station->[2]{rt_arr} or $station->[2]{sched_arr}) {
|
|
|
|
|
%= ($station->[2]{rt_arr} || $station->[2]{sched_arr})->strftime('%H:%M')
|
2022-07-13 19:35:59 +00:00
|
|
|
|
% }
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% elsif ($station->[2]{rt_dep} or $station->[2]{sched_dep}) {
|
|
|
|
|
(<%= ($station->[2]{rt_dep} || $station->[2]{sched_dep})->strftime('%H:%M') %>)
|
2022-11-09 18:28:48 +00:00
|
|
|
|
% }
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% elsif ($station->[2]{isAdditional}) {
|
2022-11-12 10:10:58 +00:00
|
|
|
|
Zusatzhalt
|
2022-07-13 19:35:59 +00:00
|
|
|
|
% }
|
2022-11-12 10:10:58 +00:00
|
|
|
|
</span>
|
2022-07-13 19:35:59 +00:00
|
|
|
|
</a>
|
|
|
|
|
% }
|
|
|
|
|
</p>
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% }
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-action">
|
2019-12-06 20:40:51 +00:00
|
|
|
|
% if ($journey->{arr_name}) {
|
2023-02-27 21:14:54 +00:00
|
|
|
|
<a href="/journey/comment">
|
|
|
|
|
<i class="material-icons">comment</i>
|
|
|
|
|
</a>
|
|
|
|
|
<a style="margin-right: 0;" href="/journey/visibility">
|
|
|
|
|
<i class="material-icons"><%= visibility_icon($journey_visibility) %></i>
|
2019-12-06 20:40:51 +00:00
|
|
|
|
</a>
|
|
|
|
|
% }
|
|
|
|
|
% else {
|
2019-12-08 20:04:34 +00:00
|
|
|
|
<a class="action-undo blue-text" data-id="in_transit" data-checkints="<%= $journey->{timestamp}->epoch %>" style="margin-right: 0;">
|
2023-02-27 21:14:54 +00:00
|
|
|
|
<i class="material-icons left" aria-hidden="true">undo</i> Rückgängig
|
2019-12-06 20:40:51 +00:00
|
|
|
|
</a>
|
|
|
|
|
% }
|
2019-08-25 07:00:59 +00:00
|
|
|
|
% if (defined $journey->{arrival_countdown} and $journey->{arrival_countdown} <= 0) {
|
|
|
|
|
<a
|
|
|
|
|
class="action-checkout right"
|
2019-10-14 13:45:10 +00:00
|
|
|
|
style="margin-right: 0;"
|
2019-08-25 07:00:59 +00:00
|
|
|
|
data-station="<%= $journey->{arr_name}%>">
|
|
|
|
|
<i class="material-icons left">done</i>
|
2023-02-27 21:14:54 +00:00
|
|
|
|
Auschecken
|
2019-08-25 07:00:59 +00:00
|
|
|
|
</a>
|
|
|
|
|
% }
|
|
|
|
|
% elsif ($journey->{arr_name}) {
|
2023-01-20 17:38:07 +00:00
|
|
|
|
% my $attrib = 'in';
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% if ($journey->{train_type} =~ m{ ^ (?: S | RB ) $ }x) {
|
|
|
|
|
% $attrib = 'in der';
|
|
|
|
|
% }
|
|
|
|
|
<a class="action-share blue-text right"
|
2019-10-14 13:45:10 +00:00
|
|
|
|
style="margin-right: 0;"
|
2023-01-20 17:38:07 +00:00
|
|
|
|
% my $arr_text = q{};
|
2023-02-27 21:14:54 +00:00
|
|
|
|
% if ($journey->{real_arrival}->epoch and $journey_visibility eq 'private') {
|
2023-01-20 17:38:07 +00:00
|
|
|
|
% $arr_text = $journey->{real_arrival}->strftime(' – Ankunft gegen %H:%M Uhr');
|
|
|
|
|
% }
|
2023-05-29 13:24:51 +00:00
|
|
|
|
% if ($user->{comments_visible} and $journey->{comment}) {
|
2019-12-28 10:03:03 +00:00
|
|
|
|
data-text="<%= $journey->{comment} %> (@ <%= $journey->{train_type} %> <%= $journey->{train_no} %> → <%= $journey->{arr_name} %>) #travelynx"
|
2019-12-06 20:56:06 +00:00
|
|
|
|
% }
|
|
|
|
|
% else {
|
2023-01-20 17:38:07 +00:00
|
|
|
|
data-text="Ich bin gerade <%= $attrib %> <%= $journey->{train_type} %> <%= $journey->{train_no} %> nach <%= $journey->{arr_name} . $arr_text %> #travelynx"
|
2019-12-06 20:56:06 +00:00
|
|
|
|
% }
|
2023-02-27 21:14:54 +00:00
|
|
|
|
% if ($journey_visibility eq 'public') {
|
2022-07-11 20:09:26 +00:00
|
|
|
|
data-url="<%= url_for('/status')->to_abs->scheme('https') %>/<%= $user->{name} %>/<%= $journey->{sched_departure}->epoch %>"
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% }
|
2023-06-16 15:49:20 +00:00
|
|
|
|
% elsif ($journey_visibility eq 'travelynx' or $journey_visibility eq 'followers' or $journey_visibility eq 'unlisted') {
|
2023-03-03 14:05:43 +00:00
|
|
|
|
data-url="<%= url_for('/status')->to_abs->scheme('https') %>/<%= $user->{name} %>/<%= $journey->{sched_departure}->epoch %>?token=<%= $journey->{dep_eva} %>-<%= $journey->{timestamp}->epoch % 337 %>"
|
2023-02-27 21:14:54 +00:00
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
>
|
2020-01-28 19:26:15 +00:00
|
|
|
|
<i class="material-icons left" aria-hidden="true">share</i> Teilen
|
2019-08-23 20:54:59 +00:00
|
|
|
|
</a>
|
|
|
|
|
% }
|
2023-02-27 21:14:54 +00:00
|
|
|
|
% else {
|
|
|
|
|
<a class="right" href="/journey/visibility">
|
|
|
|
|
<i class="material-icons left"><%= visibility_icon($journey_visibility) %></i> Sichtbarkeit
|
|
|
|
|
</a>
|
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
</div>
|
2019-04-23 20:27:13 +00:00
|
|
|
|
</div>
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% if ($journey->{arr_name}) {
|
2020-01-09 17:13:37 +00:00
|
|
|
|
<div class="card" style="margin-top: 3em;">
|
|
|
|
|
<div class="card-content">
|
|
|
|
|
<span class="card-title">Details</span>
|
|
|
|
|
% if (@{$journey->{extra_data}{him_msg} // []}) {
|
|
|
|
|
<p style="margin-bottom: 2ex;">
|
|
|
|
|
<ul>
|
|
|
|
|
% for my $message (@{$journey->{extra_data}{him_msg} // []}) {
|
|
|
|
|
<li> <i class="material-icons tiny">info</i> <%= $message->{header} %> <%= $message->{lead} %></li>
|
|
|
|
|
% }
|
|
|
|
|
</ul>
|
|
|
|
|
</p>
|
|
|
|
|
% }
|
2022-02-16 19:56:28 +00:00
|
|
|
|
% if ($journey->{traewelling}{errored} and $journey->{traewelling_log_latest}) {
|
|
|
|
|
<p style="margin-bottom: 2ex;">
|
|
|
|
|
<ul>
|
|
|
|
|
<li> <i class="material-icons tiny">warning</i> Träwelling: <%= $journey->{traewelling_log_latest} %></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</p>
|
|
|
|
|
% }
|
|
|
|
|
% if ($journey->{traewelling_url}) {
|
|
|
|
|
<p style="margin-bottom: 2ex;">
|
|
|
|
|
<ul>
|
|
|
|
|
<li> <i class="material-icons tiny">sync</i> Träwelling: <a href="<%= $journey->{traewelling_url} %>"><%= $journey->{traewelling_log_latest} %></a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</p>
|
|
|
|
|
% }
|
2020-01-09 17:13:37 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="card-action">
|
2022-08-19 15:21:41 +00:00
|
|
|
|
% my $url = 'https://bahn.expert/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000';
|
2020-01-28 19:26:15 +00:00
|
|
|
|
<a style="margin-right: 0;" href="<%= $url %>" aria-label="Zuglauf"><i class="material-icons left">timeline</i> Zuglauf</a>
|
2020-01-09 17:13:37 +00:00
|
|
|
|
% if ($journey->{extra_data}{trip_id}) {
|
2020-01-28 19:26:15 +00:00
|
|
|
|
<a class="right" style="margin-right: 0;" href="https://dbf.finalrewind.org/map/<%= $journey->{extra_data}{trip_id} %>/<%= $journey->{train_line} || 0 %>?from=<%= $journey->{dep_name} %>&to=<%= $journey->{arr_name} %>&dark=<%= (session('theme') and session('theme') eq 'dark') ? 1 : 0 %>"><i class="material-icons left" aria-hidden="true">map</i> Karte</a>
|
2020-01-09 17:13:37 +00:00
|
|
|
|
% }
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-08-23 20:54:59 +00:00
|
|
|
|
<div class="card" style="margin-top: 3em;">
|
|
|
|
|
<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">Ziel ändern?</span>
|
2022-07-15 19:00:38 +00:00
|
|
|
|
% if ($user->{sb_template}) {
|
|
|
|
|
<div class="targetlist">
|
|
|
|
|
% }
|
|
|
|
|
% else {
|
|
|
|
|
<p>
|
|
|
|
|
% }
|
2022-07-13 19:35:59 +00:00
|
|
|
|
% for my $station (@{$journey->{route_after}}) {
|
|
|
|
|
% my $is_dest = ($journey->{arr_name} and $station->[0] eq $journey->{arr_name});
|
2022-07-15 20:37:02 +00:00
|
|
|
|
<a class="action-checkout tablerow" style="<%= $is_dest? 'font-weight: bold;' : '' %>" data-station="<%= $station->[0] %>">
|
2022-07-13 19:35:59 +00:00
|
|
|
|
<span><%= $station->[0] %></span>
|
2022-11-12 10:10:58 +00:00
|
|
|
|
<span>
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% if ($station->[2]{load}{SECOND}) {
|
|
|
|
|
% my ($first, $second) = load_icon($station->[2]{load});
|
2022-11-12 19:19:36 +00:00
|
|
|
|
<i class="material-icons tiny" aria-hidden="true"><%= $first %></i> <i class="material-icons tiny" aria-hidden="true"><%= $second %></i>
|
2022-11-12 10:10:58 +00:00
|
|
|
|
% }
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% if ($station->[2]{isCancelled}) {
|
2022-11-12 10:10:58 +00:00
|
|
|
|
entfällt
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% }
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% elsif ($station->[2]{rt_arr} or $station->[2]{sched_arr}) {
|
|
|
|
|
%= ($station->[2]{rt_arr} || $station->[2]{sched_arr})->strftime('%H:%M')
|
2022-07-13 19:35:59 +00:00
|
|
|
|
% }
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% elsif ($station->[2]{rt_dep} or $station->[2]{sched_dep}) {
|
|
|
|
|
(<%= ($station->[2]{rt_dep} || $station->[2]{sched_dep})->strftime('%H:%M') %>)
|
2022-11-09 18:28:48 +00:00
|
|
|
|
% }
|
2023-01-15 15:37:32 +00:00
|
|
|
|
% elsif ($station->[2]{isAdditional}) {
|
2022-11-12 10:10:58 +00:00
|
|
|
|
Zusatzhalt
|
2022-07-13 19:35:59 +00:00
|
|
|
|
% }
|
2022-11-12 10:10:58 +00:00
|
|
|
|
</span>
|
2022-07-13 19:35:59 +00:00
|
|
|
|
</a>
|
2022-07-15 19:00:38 +00:00
|
|
|
|
% if ($user->{sb_template}) {
|
2023-01-15 15:37:32 +00:00
|
|
|
|
<a class="nonflex" href="<%= resolve_sb_template($user->{sb_template}, name => $station->[0], eva => $station->[1], tt => $journey->{train_type} // q{x}, tn => $journey->{train_no}, id => $journey->{train_id}) %>"><i class="material-icons tiny">train</i></a>
|
2022-07-15 19:00:38 +00:00
|
|
|
|
% }
|
|
|
|
|
% }
|
|
|
|
|
% if ($user->{sb_template}) {
|
|
|
|
|
</div>
|
|
|
|
|
% }
|
|
|
|
|
% else {
|
|
|
|
|
</p>
|
2022-07-13 19:35:59 +00:00
|
|
|
|
% }
|
2019-08-23 20:54:59 +00:00
|
|
|
|
</div>
|
2019-12-06 20:40:51 +00:00
|
|
|
|
<div class="card-action">
|
2019-12-08 20:04:34 +00:00
|
|
|
|
<a class="action-undo blue-text" data-id="in_transit" data-checkints="<%= $journey->{timestamp}->epoch %>" style="margin-right: 0;">
|
2020-01-28 19:26:15 +00:00
|
|
|
|
<i class="material-icons left" aria-hidden="true">undo</i> Checkin Rückgängig
|
2019-12-06 20:40:51 +00:00
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2019-08-23 20:54:59 +00:00
|
|
|
|
</div>
|
2023-06-24 06:58:02 +00:00
|
|
|
|
<p>
|
|
|
|
|
Falls das Backend ausgefallen ist oder der Zug aus anderen
|
|
|
|
|
Gründen verloren ging:
|
|
|
|
|
</p>
|
|
|
|
|
<p class="center-align">
|
|
|
|
|
<a class="action-checkout waves-light btn"
|
|
|
|
|
data-force="1" data-station="<%= $journey->{arr_name}
|
|
|
|
|
%>">Ohne Echtzeitdaten auschecken</a>
|
|
|
|
|
</p>
|
2019-08-23 20:54:59 +00:00
|
|
|
|
% }
|
2019-04-23 20:27:13 +00:00
|
|
|
|
</div>
|