summaryrefslogtreecommitdiff
path: root/templates/_transit_fyi.html.ep
diff options
context:
space:
mode:
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>