old-silvrgit/views/partials/weather.ejs

27 lines
709 B
Plaintext
Raw Normal View History

<div id="container" class="mui-panel">
2016-02-29 15:05:57 +00:00
<h2>Weather</h2>
<div class="mui-row">
<div class="mui-col-md-12">Currently: <%= data.weather.currently %></div>
</div>
<div class="mui-row">
<div class="mui-col-md-12">Today: <%= data.weather.today %></div>
</div>
<div class="mui-row">
<div class="mui-col-md-12">Later: <%= data.weather.later %></div>
</div>
2016-02-01 10:23:47 +00:00
2016-02-29 15:05:57 +00:00
<% if (data.weather.alerts.length > 0) {
for (var i = 0; i < data.weather.alerts.length; i++) {
%>
2016-02-01 10:23:47 +00:00
2016-02-29 15:05:57 +00:00
<div class="mui-row">
<div class="mui-col-md-12 mui--text-danger"><%= data.weather.alerts[i].title %></div>
<div class="mui-col-md-12"><%= data.weather.alerts[i].description %></div>
</div>
2016-02-01 10:23:47 +00:00
2016-02-29 15:05:57 +00:00
<%
}
} %>
2016-02-01 10:23:47 +00:00
</div>