summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-04-22 13:35:58 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-04-22 13:35:58 +0000
commit86e17aa65773a07b1f48e14bb02b97d18a210ece (patch)
treea36959999f49f821457adafd390b06412e3c079c /modules/admin-full/luasrc/view
parentec92cd0aea4bc9b3f2de443da31b956c5f43660f (diff)
modules/admin-full: do not show protocol warning for empty interfaces, link to physical settings instead
Diffstat (limited to 'modules/admin-full/luasrc/view')
-rw-r--r--modules/admin-full/luasrc/view/admin_network/iface_overview.htm10
1 files 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 0e03b912b..9577ed0fd 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(
+ '<em><%:Network without interfaces.%></em><br />' +
+ '<a href="<%=luci.dispatcher.build_url("admin/network/network/%s")%>?tab.network.%s=physical"><%:Assign interfaces...%></a>',
+ ifc.name, ifc.name
+ );
+ }
else if (d && !ifc.proto)
{
var e = document.getElementById(ifc.id + '-ifc-edit');