applications/luci-olsr: Fix rowstyle, make html valid
[project/luci.git] / applications / luci-olsr / luasrc / view / status-olsr / interfaces.htm
index 2d3ff87..17090ff 100644 (file)
@@ -47,7 +47,7 @@ local i = 1
                        <td class="cbi-section-table-cell"><%=iface.Mask%></td>
                        <td class="cbi-section-table-cell"><%=iface["Dst-Adress"]%></td>
                </tr>
-               <% if i == 1 then i = 0 elseif i == 0 then i = 1 end
+               <% i = ((i % 2) + 1)
                end %>
        </table>
 </fieldset>