mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
mwan3-luci: update to 1.3-2
added support for new last_resort option for policy configuration added dependencies for luci-mod-admin-full and luci-lib-nixio shortened length of menuconfig description lines reworded things on various pages changed date formatting in custom hotplug script default route checks now verify both destination/netmask are 0.0.0.0 condensed messy javascript lines and removed -F' ' from awk commands Signed-off-by: Aedan Renner <chipdankly@gmail.com>
This commit is contained in:
@@ -57,10 +57,7 @@
|
||||
{
|
||||
var temp = '';
|
||||
var ncint = 'No diagnostic results returned';
|
||||
temp = String.format(
|
||||
'<pre id="diag_output_css"><strong>%s</strong></pre>',
|
||||
ncint
|
||||
);
|
||||
temp = String.format('<pre id="diag_output_css"><strong>%s</strong></pre>', ncint);
|
||||
output.innerHTML = temp;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
temp = String.format(
|
||||
'<pre><span class="tsht">%s</span>%s<span class="tsht">%s</span>%s<span class="tsht">%s</span>%s<span class="tsht">%s</span>%s<span class="tsht">%s</span>%s<span class="tsht">%s</span>%s<span class="tsht">%s</span>%s<span class="tsht">%s</span>%s<span class="tsht">%s</span>%s</pre>',
|
||||
mwanvers, st.mw3ver[0].mwan3v, mwan3cnfg, st.mwan3config[0].mwn3cfg, netcnfg, st.netconfig[0].netcfg, ifcnfg, st.ifconfig[0].ifcfg, iproute, st.rtshow[0].iprtshow, iprulesh, st.iprule[0].rule, routelisttbl, st.routelist[0].iprtlist, firewalldef, st.fidef[0].firedef, iptable, st.iptables[0].iptbls
|
||||
mwanvers, st.mw3ver[0].mwan3v, mwan3cnfg, st.mwan3config[0].mwn3cfg, netcnfg, st.netconfig[0].netcfg, ifcnfg, st.ifconfig[0].ifcfg, iproute, st.rtshow[0].iprtshow, iprulesh, st.iprule[0].rule, routelisttbl, st.routelist[0].iprtlist, firewalldef, st.fidef[0].firedef, iptable, st.iptables[0].iptbls
|
||||
);
|
||||
tx.innerHTML = temp;
|
||||
}
|
||||
@@ -37,10 +37,7 @@
|
||||
{
|
||||
var temp = '';
|
||||
var terror = 'Error collecting troubleshooting information';
|
||||
temp = String.format(
|
||||
'<strong>%s</strong>',
|
||||
terror
|
||||
);
|
||||
temp = String.format('<strong>%s</strong>', terror);
|
||||
tx.innerHTML = temp;
|
||||
}
|
||||
}
|
||||
@@ -53,6 +50,7 @@
|
||||
<div id="mwan3_tshoot_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /> Collecting data...</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<style type="text/css">
|
||||
.container { /*container for entire page. fixes bootstrap theme's ridiculously small page width*/
|
||||
max-width: none;
|
||||
|
||||
@@ -14,20 +14,14 @@
|
||||
if (st.mwan3dst)
|
||||
{
|
||||
var temp = '';
|
||||
temp = String.format(
|
||||
'<pre>%s</pre>',
|
||||
st.mwan3dst[0].detailstat
|
||||
);
|
||||
temp = String.format('<pre>%s</pre>', st.mwan3dst[0].detailstat);
|
||||
tx.innerHTML = temp;
|
||||
}
|
||||
else
|
||||
{
|
||||
var temp = '';
|
||||
var nslg = 'No detailed status information available';
|
||||
temp = String.format(
|
||||
'<strong>%s</strong>',
|
||||
nslg
|
||||
);
|
||||
temp = String.format('<strong>%s</strong>', nslg);
|
||||
tx.innerHTML = temp;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
temp += String.format(
|
||||
'<span class="%s"><strong>%s (<a href="%q">%s</a>)</strong><br />%s</span>',
|
||||
cssc, st.wans[i].name, st.wans[i].link, st.wans[i].ifname, stat
|
||||
cssc, st.wans[i].name, st.wans[i].link, st.wans[i].ifname, stat
|
||||
);
|
||||
}
|
||||
tx.innerHTML = temp;
|
||||
@@ -54,10 +54,7 @@
|
||||
{
|
||||
var temp = '';
|
||||
var ncint = 'No MWAN3 interfaces found';
|
||||
temp = String.format(
|
||||
'<strong>%s</strong>',
|
||||
ncint
|
||||
);
|
||||
temp = String.format('<strong>%s</strong>', ncint);
|
||||
tx.innerHTML = temp;
|
||||
}
|
||||
|
||||
@@ -66,21 +63,14 @@
|
||||
{
|
||||
var temp = '';
|
||||
var mwan3lg = 'Last 50 MWAN3 systemlog entries. Newest entries sorted at the top :';
|
||||
|
||||
temp = String.format(
|
||||
'<pre>%s<br /><br />%s</pre>',
|
||||
mwan3lg, st.mwan3log[0].mwanlog
|
||||
);
|
||||
temp = String.format('<pre>%s<br /><br />%s</pre>', mwan3lg, st.mwan3log[0].mwanlog);
|
||||
tx.innerHTML = temp;
|
||||
}
|
||||
else
|
||||
{
|
||||
var temp = '';
|
||||
var nslg = 'No MWAN3 systemlog history found';
|
||||
temp = String.format(
|
||||
'<strong>%s</strong>',
|
||||
nslg
|
||||
);
|
||||
temp = String.format('<strong>%s</strong>', nslg);
|
||||
tx.innerHTML = temp;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
temp += String.format(
|
||||
'<span class="%s"><strong>%s (<a href="%q">%s</a>)</strong><br />%s</span>',
|
||||
cssc, st.wans[i].name, st.wans[i].link, st.wans[i].ifname, stat
|
||||
cssc, st.wans[i].name, st.wans[i].link, st.wans[i].ifname, stat
|
||||
);
|
||||
}
|
||||
tx.innerHTML = temp;
|
||||
@@ -46,10 +46,7 @@
|
||||
{
|
||||
var temp = '';
|
||||
var ncint = 'No MWAN3 interfaces found';
|
||||
temp += String.format(
|
||||
'<strong>%s</strong>',
|
||||
ncint
|
||||
);
|
||||
temp += String.format('<strong>%s</strong>', ncint );
|
||||
tx.innerHTML = temp;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user