luci-splash: create the tbody outside from tr loop

This commit is contained in:
Patrick Grimm 2012-02-03 23:52:55 +00:00
parent 65e081954a
commit f492411143

View file

@ -233,6 +233,7 @@ end
<th class="cbi-section-table-cell"><%:Policy%></th> <th class="cbi-section-table-cell"><%:Policy%></th>
</tr> </tr>
</thead> </thead>
<tbody id="splash_table">
<%- <%-
local count = 0 local count = 0
@ -248,7 +249,6 @@ end
if c.ip then if c.ip then
count = count + 1 count = count + 1
-%> -%>
<tbody id="splash_table">
<tr class="cbi-section-table-row cbi-rowstyle-<%=2-(count%2)%>"> <tr class="cbi-section-table-row cbi-rowstyle-<%=2-(count%2)%>">
<td class="cbi-section-table-cell"><%=c.hostname or "<em>" .. translate("unknown") .. "</em>"%></td> <td class="cbi-section-table-cell"><%=c.hostname or "<em>" .. translate("unknown") .. "</em>"%></td>
<td class="cbi-section-table-cell"><%=c.ip or "<em>" .. translate("unknown") .. "</em>"%></td> <td class="cbi-section-table-cell"><%=c.ip or "<em>" .. translate("unknown") .. "</em>"%></td>