tidy up layout for weather. remove extra entry.

workspace
Brendan Howell 4 years ago
parent a386c924af
commit d1e5e5168a

@ -117,7 +117,7 @@
}
.weatherday {
float: left;
width: 25%;
width: 12.5%;
}
.weatherperiod img {
width: 50%;
@ -192,16 +192,16 @@
<div class="weatherday">
<h6>Today</h6>
% for period in forecast:
% if daycount <= 3:
% if period["day"] != curr_day:
<%
daycount += 1
curr_day = period["day"]
%>
% if (daycount <= 4) and (period["day"] != curr_day):
<%
daycount += 1
curr_day = period["day"]
%>
</div>
<div class="weatherday">
<h6>${period["day"]}</h6>
% endif
% endif
% if daycount <= 3:
<div class="weatherperiod">
<img src="file://${period['symbol']}" />
<p class="weathertime">${period["period"]}</p>

Loading…
Cancel
Save