www: style channelinfo hosts table rows

Use the rowToggle helper to style the rows with alternating colors. This
makes this table easier to read.
This commit is contained in:
Ken Dreyer 2021-11-19 16:21:39 -05:00
parent a791dd8670
commit 0323c4f985

View file

@ -38,7 +38,7 @@
<th>Ready</th>
</tr>
#for $host in $hosts
<tr>
<tr class="$util.rowToggle($self)">
<td><a href="hostinfo?hostID=$host.id">$host.name</a></td>
<td class="$str($bool($host.enabled)).lower()">#if $host.enabled then $util.imageTag('yes') else $util.imageTag('no')#</td>
<td class="$str($bool($host.ready)).lower()">#if $host.ready then $util.imageTag('yes') else $util.imageTag('no')#</td>