projects
/
feed
/
routing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b3f0f7b
)
Adapt tunnels web view to new bmx6 syntax and options
author
p4u
<p4u@dabax.net>
Thu, 18 Jul 2013 23:09:17 +0000
(
01:09
+0200)
committer
p4u
<p4u@dabax.net>
Thu, 18 Jul 2013 23:09:17 +0000
(
01:09
+0200)
luci-app-bmx6/files/usr/lib/lua/luci/view/bmx6/tunnels_j.htm
patch
|
blob
|
history
diff --git
a/luci-app-bmx6/files/usr/lib/lua/luci/view/bmx6/tunnels_j.htm
b/luci-app-bmx6/files/usr/lib/lua/luci/view/bmx6/tunnels_j.htm
index 1b7ce42365ca87bb665446dc9e49503bd754878e..d4cc38b680620360131534c7bb4398721a2017a7 100644
(file)
--- a/
luci-app-bmx6/files/usr/lib/lua/luci/view/bmx6/tunnels_j.htm
+++ b/
luci-app-bmx6/files/usr/lib/lua/luci/view/bmx6/tunnels_j.htm
@@
-71,7
+71,8
@@
<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"><%:search id%></th>
+ <th class="cbi-section-table-cell"><%:Src%></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>
@@
-89,15
+90,15
@@
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.remote
Id
.replace(/\..+$/,'');
+ var nodename = tunnel.remote
Name
.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.
searchN
et, tunnel.advType,
- tunnel.pathMtc, tunnel.ipMtc, tunnel.tunMtc, tunnel.bonus, tunnel.s
earchI
d]);
+ res.push([status, tunnel.name, nodename, advnet, tunnel.advBw, tunnel.
n
et, tunnel.advType,
+ tunnel.pathMtc, tunnel.ipMtc, tunnel.tunMtc, tunnel.bonus, tunnel.s
rcIngress, tunnel.i
d]);
}
return res;
});
}
return res;
});