summaryrefslogtreecommitdiff
path: root/templates/_transit_fyi.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-09-24 18:53:04 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-09-24 18:53:04 +0200
commite54130ad6ea805cc04db17a3f614cb4bd25ca3f0 (patch)
tree4ffe1b52cc44a2c75c1614d5c36c244d06716609 /templates/_transit_fyi.html.ep
parent1c7779e94ef6859348570b9c1b5f2f8a27e32c1f (diff)
optionally show local transit connections as well
Diffstat (limited to 'templates/_transit_fyi.html.ep')
-rw-r--r--templates/_transit_fyi.html.ep19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/_transit_fyi.html.ep b/templates/_transit_fyi.html.ep
new file mode 100644
index 0000000..42233e5
--- /dev/null
+++ b/templates/_transit_fyi.html.ep
@@ -0,0 +1,19 @@
+<table class="striped"><tbody>
+ % for my $res (@{$transit_fyi}) {
+ % my ($info, $via, $via_arr) = @{$res};
+ % $via_arr = $via_arr ? $via_arr->strftime('%H:%M') : q{};
+ <tr>
+ <td>
+ %= $info->{line}
+ <br/>
+ %= $info->{departure}->strftime('%H:%M')
+ % if ($info->{departure_delay}) {
+ %= sprintf('(%+d)', $info->{departure_delay})
+ % }
+ </td>
+ <td>
+ <%= $via %><br/><%= $via_arr %>
+ </td>
+ </tr>
+ % }
+</tbody></table>