luci-mod-admin-full: don't replace DHCPv6 hostname
[project/luci.git] / modules / luci-mod-admin-full / luasrc / view / admin_status / bandwidth.htm
index 0c53c95..33bbee7 100644 (file)
@@ -1,15 +1,6 @@
 <%#
-LuCI - Lua Configuration Interface
-Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
-
-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$
-
+ Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
+ Licensed to the public under the Apache License 2.0.
 -%>
 
 <%-
@@ -23,8 +14,7 @@ $Id$
                end
        end
 
-       local curdev = luci.dispatcher.context.requestpath
-             curdev = curdev[#curdev] ~= "bandwidth" and curdev[#curdev] or devices[1]
+       local curdev = luci.http.formvalue("dev") or devices[1]
 -%>
 
 <%+header%>
@@ -273,11 +263,11 @@ $Id$
        );
 //]]></script>
 
-<h2><a id="content" name="content"><%:Realtime Traffic%></a></h2>
+<h2 name="content"><%:Realtime Traffic%></h2>
 
 <ul class="cbi-tabmenu">
        <% for _, dev in ipairs(devices) do %>
-               <li class="cbi-tab<%= dev == curdev and "" or "-disabled" %>"><a href="<%=pcdata(dev)%>"><%=pcdata(dev)%></a></li>
+               <li class="cbi-tab<%= dev == curdev and "" or "-disabled" %>"><a href="?dev=<%=pcdata(dev)%>"><%=pcdata(dev)%></a></li>
        <% end %>
 </ul>