table for tabular data

This commit is contained in:
Ted Unangst 2019-11-09 02:50:43 -05:00
parent 8a6eaf5fe1
commit ea81f1fa20
1 changed files with 9 additions and 5 deletions

View File

@ -2,10 +2,14 @@
<main> <main>
<div class="info"> <div class="info">
{{ .AboutMsg }} {{ .AboutMsg }}
<p><small>version: {{ .HonkVersion }} <p>
<br>memory: {{ printf "%.02f" .Sensors.Memory }}MB <table style="font-size:0.8em">
<br>uptime: {{ printf "%.02f" .Sensors.Uptime }}s <tbody>
<br>cputime: {{ printf "%.02f" .Sensors.CPU }}s <tr><td>version:<td style="text-align:right">{{ .HonkVersion }}
</small> <tr><td>memory:<td style="text-align:right">{{ printf "%.02f" .Sensors.Memory }}MB
<tr><td>uptime:<td style="text-align:right">{{ printf "%.02f" .Sensors.Uptime }}s
<tr><td>cputime:<td style="text-align:right">{{ printf "%.02f" .Sensors.CPU }}s
</table>
<p>
</div> </div>
</main> </main>