Revert "Adapt tunnels web view to new bmx6 syntax and options"
authorAxel Neumann <neumann@cgws.de>
Sun, 4 Aug 2013 06:28:44 +0000 (08:28 +0200)
committerAxel Neumann <neumann@cgws.de>
Sun, 4 Aug 2013 06:28:44 +0000 (08:28 +0200)
This reverts commit b493828d75c23d2733fafd317c9d5859959d8c3f.

luci-app-bmx6/files/usr/lib/lua/luci/view/bmx6/tunnels_j.htm

index d4cc38b..1b7ce42 100644 (file)
@@ -71,8 +71,7 @@
                        <th class="cbi-section-table-cell"><%:IP metric%></th>
                        <th class="cbi-section-table-cell"><%:Tun metric%></th>
                        <th class="cbi-section-table-cell"><%:Bonus%></th>
                        <th class="cbi-section-table-cell"><%:IP metric%></th>
                        <th class="cbi-section-table-cell"><%:Tun metric%></th>
                        <th class="cbi-section-table-cell"><%:Bonus%></th>
-                       <th class="cbi-section-table-cell"><%:Src%></th>
-                       <th class="cbi-section-table-cell"><%:Search id%></th>
+                       <th class="cbi-section-table-cell"><%:search id%></th>
                </tr>
                <tr class="cbi-section-table-row">
                        <td colspan="10"><em><br /><%:Collecting data...%></em></td>
                </tr>
                <tr class="cbi-section-table-row">
                        <td colspan="10"><em><br /><%:Collecting data...%></em></td>
                  var res = Array();
                   for ( var k in st.tunnels ){
                         var tunnel = st.tunnels[k];
                  var res = Array();
                   for ( var k in st.tunnels ){
                         var tunnel = st.tunnels[k];
-                        var nodename = tunnel.remoteName.replace(/\..+$/,'');
+                        var nodename = tunnel.remoteId.replace(/\..+$/,'');
                        var advnet = tunnel.advNet;
                        var status = '<img src="'+tunicon_dis+'"/>';
                        
                        if ( tunnel.tunName != "---" ) status = '<img src="'+tunicon+'"/>';
                        if ( advnet == "0.0.0.0/0" ) advnet = "<b>Internet</b>";
 
                        var advnet = tunnel.advNet;
                        var status = '<img src="'+tunicon_dis+'"/>';
                        
                        if ( tunnel.tunName != "---" ) status = '<img src="'+tunicon+'"/>';
                        if ( advnet == "0.0.0.0/0" ) advnet = "<b>Internet</b>";
 
-                       res.push([status, tunnel.name, nodename, advnet, tunnel.advBw, tunnel.net, tunnel.advType,
-                               tunnel.pathMtc, tunnel.ipMtc, tunnel.tunMtc, tunnel.bonus, tunnel.srcIngress, tunnel.id]);
+                       res.push([status, tunnel.name, nodename, advnet, tunnel.advBw, tunnel.searchNet, tunnel.advType,
+                               tunnel.pathMtc, tunnel.ipMtc, tunnel.tunMtc, tunnel.bonus, tunnel.searchId]);
                  }
                  return res;
                });
                  }
                  return res;
                });