From 86e17aa65773a07b1f48e14bb02b97d18a210ece Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 22 Apr 2012 13:35:58 +0000 Subject: [PATCH] modules/admin-full: do not show protocol warning for empty interfaces, link to physical settings instead --- .../luasrc/view/admin_network/iface_overview.htm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/admin-full/luasrc/view/admin_network/iface_overview.htm b/modules/admin-full/luasrc/view/admin_network/iface_overview.htm index 0e03b912b3..9577ed0fde 100644 --- a/modules/admin-full/luasrc/view/admin_network/iface_overview.htm +++ b/modules/admin-full/luasrc/view/admin_network/iface_overview.htm @@ -8,8 +8,6 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -$Id$ - -%> <%- @@ -164,6 +162,14 @@ $Id$ d.innerHTML = html; } + else if (d && !ifc.ifname) + { + d.innerHTML = String.format( + '<%:Network without interfaces.%>
' + + '?tab.network.%s=physical"><%:Assign interfaces...%>', + ifc.name, ifc.name + ); + } else if (d && !ifc.proto) { var e = document.getElementById(ifc.id + '-ifc-edit'); -- 2.30.2