diff options
Diffstat (limited to 'templates/_connections_hafas.html.ep')
| -rw-r--r-- | templates/_connections_hafas.html.ep | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/templates/_connections_hafas.html.ep b/templates/_connections_hafas.html.ep deleted file mode 100644 index 3b995b5..0000000 --- a/templates/_connections_hafas.html.ep +++ /dev/null @@ -1,57 +0,0 @@ -<ul class="collection departures connections"> - % for my $res (@{$connections}) { - % my ($train, $via, $via_arr, $hafas_service) = @{$res}; - % $via_arr = $via_arr ? $via_arr->strftime('%H:%M') : q{}; - % my $row_class = ''; - % my $link_class = 'action-checkin'; - % if ($train->is_cancelled) { - % $row_class = 'cancelled'; - % $link_class = 'action-cancelled-from'; - % } - % if ($checkin_from) { - <li class="collection-item <%= $row_class %> <%= $link_class %>" - data-hafas="<%= $hafas_service %>" - data-station="<%= $train->station_eva %>" - data-train="<%= $train->id %>" - data-ts="<%= ($train->sched_datetime // $train->datetime)->epoch %>" - data-dest="<%= $via->{name} %>"> - % } - % else { - <li class="collection-item <%= $row_class %>"> - % } - <a class="dep-time" href="#"> - % if ($train->is_cancelled) { - %= $train->sched_datetime->strftime('%H:%M') - % } - % else { - %= $train->datetime->strftime('%H:%M') - % } - % if ($via_arr) { - → <%= $via_arr %> - % } - % if ($train->delay) { - %= sprintf('(%+d)', $train->delay) - % } - </a> - <span class="connect-platform-wrapper"> - % if ($train->platform) { - <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 - </span> - </span> - <span class="dep-dest"> - %= $via->{name} - </span> - </li> - % } -</ul> |
