From 2cbf023942b42d798d73b5ce85b20ddadacc6cec Mon Sep 17 00:00:00 2001 From: dakkar Date: Mon, 27 May 2013 16:40:18 +0100 Subject: include busses in html --- forecast.html.tt | 144 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 81 insertions(+), 63 deletions(-) (limited to 'forecast.html.tt') diff --git a/forecast.html.tt b/forecast.html.tt index d45e2db..a3cb750 100644 --- a/forecast.html.tt +++ b/forecast.html.tt @@ -46,74 +46,92 @@ -
-

Currently

- [% cur.icon %] -
-
Temperature:
-
[% cur.temperature %]°
-
Summary:
-
[% cur.summary %]
-
-
-
-

Next hour

- [% f.minutely.icon %] -
-
Summary:
-
[% f.minutely.summary %]
-
-
-
-

Next 24 hours

- [% hourly.icon %] -
-
Summary:
-
[% hourly.summary %]
-
-
-
-

Next 7 days

- [% f.daily.icon %] -
-
Summary:
-
[% f.daily.summary %]
-
-
-
-
- [% today.icon %] -
+
+
+

Currently

+ [% cur.icon %] +
+
Temperature:
+
[% cur.temperature %]°
Summary:
-
[% today.summary %]
-
Min temperature:
-
[% today.temperatureMin %]° [% time(today.temperatureMinTime) %]
-
Max temperature:
-
[% today.temperatureMax %]° [% time(today.temperatureMaxTime) %]
-
Sunrise:
-
[% time(today.sunriseTime) %]
-
Sunset:
-
[% time(today.sunsetTime) %]
+
[% cur.summary %]
-
-
- [% left=0 ;FOR span IN hourly.spans_by_string('summary'); - width=3*hours_length(span) %] - [% span.value %] - [% left=left+width; END %] -
-
- [% left=0; FOR h IN hourly.data; BREAK IF loop.last %] - [% time(h.time) %] - [% left=left+3; END %] -
-
- [% left=0; FOR h IN hourly.data; BREAK IF loop.last %] - [% h.temperature %]° - [% left=left+3; END %] +
+
+

Next hour

+ [% f.minutely.icon %] +
+
Summary:
+
[% f.minutely.summary %]
+
+
+
+

Next 24 hours

+ [% hourly.icon %] +
+
Summary:
+
[% hourly.summary %]
+
+
+
+

Next 7 days

+ [% f.daily.icon %] +
+
Summary:
+
[% f.daily.summary %]
+
+
+
+
+ [% today.icon %] +
+
Summary:
+
[% today.summary %]
+
Min temperature:
+
[% today.temperatureMin %]° [% time(today.temperatureMinTime) %]
+
Max temperature:
+
[% today.temperatureMax %]° [% time(today.temperatureMaxTime) %]
+
Sunrise:
+
[% time(today.sunriseTime) %]
+
Sunset:
+
[% time(today.sunsetTime) %]
+
+
+
+ [% left=0 ;FOR span IN hourly.spans_by_string('summary'); + width=3*hours_length(span) %] + [% span.value %] + [% left=left+width; END %] +
+
+ [% left=0; FOR h IN hourly.data; BREAK IF loop.last %] + [% time(h.time) %] + [% left=left+3; END %] +
+
+ [% left=0; FOR h IN hourly.data; BREAK IF loop.last %] + [% h.temperature %]° + [% left=left+3; END %] +
+
+ + + + + + [% FOREACH p IN b.Prediction %] + + + + + + [% END %] + +
LineDestinationWhen
[% p.LineName %][% p.DestinationText %][% p.EstimatedTime %]
+
-- cgit v1.2.3