luci-mod-admin-full: fix possible switch status layout bug
authorJo-Philipp Wich <jo@mein.io>
Tue, 26 Jun 2018 13:24:16 +0000 (15:24 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 26 Jun 2018 13:24:16 +0000 (15:24 +0200)
commit60c5d15e9eb46016bba7383b103cf95ebb997886
treeae520e6597746e13f48e96bffeb68f5f8a7d7bc9
parent2efcc53f2e51062e102384a1bc18ea46b5d22c5c
luci-mod-admin-full: fix possible switch status layout bug

In some cases we might get status information for more ports than which are
actually usable, prevent overflowing the port status row in this case.

Reported-at: https://forum.lede-project.org/t/x/15897/14
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/view/admin_network/switch_status.htm