From: Jo-Philipp Wich Date: Mon, 15 Nov 2010 22:08:42 +0000 (+0000) Subject: modules/admin-full: new interface overview page, other template changes X-Git-Tag: 0.10.0~481 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=75e807e28912c89123df5a042a0a5df0b3bc936a;hp=e3eef6dec687a168cd9bfbfcb360e6b9d7471dd0;ds=inline modules/admin-full: new interface overview page, other template changes --- diff --git a/modules/admin-full/luasrc/view/admin_network/iface_overview.htm b/modules/admin-full/luasrc/view/admin_network/iface_overview.htm new file mode 100644 index 000000000..132a5dddf --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_network/iface_overview.htm @@ -0,0 +1,226 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2010 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id: wifi_overview.htm 6280 2010-10-12 05:06:34Z jow $ + +-%> + +<%- + local ntm = require "luci.model.network".init() + + local net + local netlist = { } + for _, net in ipairs(ntm:get_networks()) do + if net:name() ~= "loopback" then + netlist[#netlist+1] = net:name() + end + end +-%> + +<%+header%> + + + + +

<%:Interface Overview%>

+ + + +
+
+ + + + + + + + + + <% for i, net in ipairs(netlist) do %> + + + + + + + + + + <% end %> +
 <%:Interface%><%:MAC%><%:Addresses%><%:Transfer%><%:Actions%>
+ <%=net%> + +
+ ? +
?<%:Collecting data...%> + <%:RX%>: 0 <%:KB%> (0 <%:Pkts.%>)
+ <%:TX%>: 0 <%:KB%> (0 <%:Pkts.%>)
+
+ <%:Reconnect this interface%> + <%:Shutdown this interface%> + + "><%:Edit this interface%> + " onclick="return confirm('<%:Really delete this interface? The deletion cannot be undone!\nYou might loose access to this router if you are connected via this interface.%>')"><%:Delete this interface%> +
+
+ +
" method="post"> +
+ +
+
+ +<%+footer%> diff --git a/modules/admin-full/luasrc/view/admin_network/iface_status.htm b/modules/admin-full/luasrc/view/admin_network/iface_status.htm index 5836d4145..34e3dddfd 100644 --- a/modules/admin-full/luasrc/view/admin_network/iface_status.htm +++ b/modules/admin-full/luasrc/view/admin_network/iface_status.htm @@ -61,7 +61,7 @@ d.innerHTML += String.format( '%s%s/%d', i ? ', ' : '', - ifc.ip6addrs[i].addr, + ifc.ip6addrs[i].addr.toUpperCase(), ifc.ip6addrs[i].prefix ); diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm index 0702017de..d23a0853a 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm @@ -283,7 +283,7 @@ $Id$ <%:Collecting data...%> - Edit this network + <%:Edit this network%> "><%:Delete this network%>