diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-12-27 15:12:17 +0100 |
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-12-27 15:12:17 +0100 |
| commit | 3acb1b379b9be3c1cc252d7a55f1ec34240e48f6 (patch) | |
| tree | 14c6af48601b7de74036b92979616ff98e70c58c /templates | |
| parent | b3300e3a92d0ac3a4b029b5f9c48a08c87a58ba1 (diff) | |
EFA suggestions: go back to a single template
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/_suggestions_efa.html.ep | 56 | ||||
| -rw-r--r-- | templates/departures.html.ep | 2 |
2 files changed, 1 insertions, 57 deletions
diff --git a/templates/_suggestions_efa.html.ep b/templates/_suggestions_efa.html.ep deleted file mode 100644 index bca5d74..0000000 --- a/templates/_suggestions_efa.html.ep +++ /dev/null @@ -1,56 +0,0 @@ -<ul class="collection departures connections"> - % for my $res (@{$suggestions}) { - % my ($dep, $dest, $via_arr) = @{$res}; - % my $row_class = ''; - % my $link_class = 'action-checkin'; - % if ($dep->is_cancelled) { - % $row_class = 'cancelled'; - % $link_class = 'action-cancelled-from'; - % } - % if ($checkin_from) { - <li class="collection-item <%= $row_class %> <%= $link_class %>" - data-efa="<%= $efa %>" - data-station="<%= $dep->stop_id_num %>" - data-train="<%= $dep->id %>" - data-ts="<%= ($dep->sched_datetime // $dep->datetime)->epoch %>" - data-dest="<%= $dest->{name} %>"> - % } - % else { - <li class="collection-item <%= $row_class %>"> - % } - <a class="dep-time" href="#"> - % if ($dep->is_cancelled) { - %= $dep->sched_datetime->strftime('%H:%M') - % } - % else { - %= $dep->datetime->strftime('%H:%M') - % } - % if ($via_arr) { - → <%= $via_arr->strftime('%H:%M') %> - % } - % if ($dep->delay) { - %= sprintf('(%+d)', $dep->delay) - % } - </a> - <span class="connect-platform-wrapper"> - % if ($dep->platform) { - <span> - % if (($dep->type // q{}) =~ m{ ast | bus | ruf }ix) { - Steig - % } - % else { - Gleis - % } - %= $dep->platform - </span> - % } - <span class="dep-line <%= ($dep->type // q{}) =~ tr{a-zA-Z_-}{}cdr %>"> - %= $dep->line - </span> - </span> - <span class="dep-dest"> - %= $dest->{name} - </span> - </li> - % } -</ul> diff --git a/templates/departures.html.ep b/templates/departures.html.ep index b1390b3..5d5e5af 100644 --- a/templates/departures.html.ep +++ b/templates/departures.html.ep @@ -90,7 +90,7 @@ %= include '_suggestions_dbris', suggestions => stash('suggestions'), checkin_from => $eva; % } % elsif ($efa) { - %= include '_suggestions_efa', suggestions => stash('suggestions'), checkin_from => $eva; + %= include '_connections_efa', suggestions => stash('suggestions'), checkin_from => $eva; % } % else { %= include '_suggestions_iris', suggestions => stash('suggestions'), checkin_from => $eva; |
