summaryrefslogtreecommitdiff
path: root/templates/_transit_fyi.html.ep
blob: 42233e509c30d62477b481752ace4ee17288b6ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>