Files
MaxWaterSystem-Submonitor/submonitor/html-templates/Nodelist.html
Patrick McDonagh 059fc58ed3 Initial commit
2018-05-14 10:29:41 -05:00

40 lines
934 B
HTML

<style>
.header h4 {
position: relative;
top: 0.9em;
}
.header h2 {
text-transform: uppercase;
font-size: 14px;
color: #aaa;
margin: 0.75em 0;
}
.header p {
font-size: 24px;
color: black;
font-weight: 600;
}
</style>
<div class="row header">
<div class="col-xs-1">
<div class="<%= nodecolors.statuscolor %> nodecolor"></div>
</div>
<div class="col-xs-2">
<img src="<%= nodeimgurl %>" />
</div>
<div class="col-xs-3">
<h4><%= node.vanityname %></h4>
</div>
<div class="col-xs-3">
<h2>Avg. Current</h2>
<p><%= Math.round(channels['submonitor.current_average'].value * 100) / 100 %> A.</p>
</div>
<div class="col-xs-3">
<h2>Avg. Voltage</h2>
<p><%= Math.round(channels['submonitor.voltage_average'].value * 100) / 100 %> V.</p>
</div>
</div>