Changeset 7558

Show
Ignore:
Timestamp:
09/25/11 12:59:21 (20 months ago)
Author:
jow
Message:

libs/web: network widget fixes

Location:
luci/trunk/libs/web/luasrc/view/cbi
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/web/luasrc/view/cbi/network_ifacelist.htm

    r7552 r7558  
    2626        if n then 
    2727            local i 
    28             for _, i in ipairs(n:is_bridge() and n:get_interfaces() or { n:get_interface() }) do 
     28            for _, i in ipairs(n:get_interfaces() or { n:get_interface() }) do 
    2929                checked[i:name()] = true 
    3030            end 
  • luci/trunk/libs/web/luasrc/view/cbi/network_netinfo.htm

    r7552 r7558  
    1616        <% 
    1717            local empty = true 
    18             for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do 
     18            for _, iface in ipairs(net:get_interfaces() or { net:get_interface() }) do 
    1919                if not iface:is_bridge() then 
    2020                    empty = false 
  • luci/trunk/libs/web/luasrc/view/cbi/network_netlist.htm

    r7552 r7558  
    3737                            empty = false 
    3838                 %> 
    39                     <img<%=attr("title", pcdata(iface:get_i18n()))%> style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" /> 
     39                    <img<%=attr("title", iface:get_i18n())%> style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" /> 
    4040                <% end end %> 
    4141                <% if empty then %><em><%:(no interfaces attached)%></em><% end %>