applications/luci-olsr: Fix rowstyle, make html valid
[project/luci.git] / applications / luci-olsr / luasrc / view / status-olsr / interfaces.htm
index 2d3ff876ab2b889cc183bc66d8f6413b48b5f692..17090ff4aa7d7e88b604a3fcd1d488d4e2bc2031 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>