1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix link to interfaces in multipath graph

This commit is contained in:
Ycarus 2018-06-30 17:36:23 +02:00
parent 756c739af4
commit c1be5273b6

View file

@ -35,11 +35,7 @@
end end
end end
local curdev = luci.dispatcher.context.requestpath local curdev = luci.http.formvalue("dev") or "all"
curdev = curdev[#curdev] ~= "bandwidth" and curdev[#curdev] or devices[1]
if curdev == "" then
curdev = "all"
end
-%> -%>
<%+header%> <%+header%>
@ -769,7 +765,7 @@
<ul class="cbi-tabmenu"> <ul class="cbi-tabmenu">
<% for _, dev in ipairs(devices) do %> <% 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 %> <% end %>
</ul> </ul>