diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-12-03 15:17:05 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-08 16:26:20 +0100 |
commit | 1bb4822dca6113f73e3bc89e2acf15935e6f8e92 (patch) | |
tree | 35e16f100466e4e00657199b38bb3d87d52bf73f /applications/luci-multiwan/luasrc/view/multiwan_status.htm | |
parent | 9edd0e46c3f880727738ce8ca6ff1c8b85f99ef4 (diff) |
Rework LuCI build system
* Rename subdirectories to their repective OpenWrt package names
* Make each LuCI module its own standalone package
* Deploy a shared luci.mk which is used by each module Makefile
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'applications/luci-multiwan/luasrc/view/multiwan_status.htm')
-rw-r--r-- | applications/luci-multiwan/luasrc/view/multiwan_status.htm | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/applications/luci-multiwan/luasrc/view/multiwan_status.htm b/applications/luci-multiwan/luasrc/view/multiwan_status.htm deleted file mode 100644 index 8c4127b237..0000000000 --- a/applications/luci-multiwan/luasrc/view/multiwan_status.htm +++ /dev/null @@ -1,71 +0,0 @@ -<script type="text/javascript">//<![CDATA[ - XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "network", "multiwan", "status")%>', null, - function(x, st) - { - var tx = document.getElementById('multiwan_status_text'); - if (tx) - { - if (st && st.wans) - { - var temp = ''; - - for( var i = 0; i < st.wans.length; i++ ) - { - var stat = '<%:Unknown%>'; - var cssc = ''; - - switch (st.wans[i].status) - { - case 'ok': - stat = '<%:OK%>'; - cssc = 'wanok'; - break; - - case 'ko': - stat = '<%:KO%>'; - cssc = 'wanko'; - break; - - case 'recovering': - stat = String.format('<%:Recovering%>(%d)', st.wans[i].count); - cssc = 'wanrecov'; - break; - - case 'failing': - stat = String.format('<%:Failing%>(%d)', st.wans[i].count); - cssc = 'wanfail'; - break; - } - - temp += String.format( - '<span class="%s"><strong>%s (<a href="%q">%s</a>) :</strong> %s</span>', - cssc, st.wans[i].name, st.wans[i].link, st.wans[i].ifname, stat - ); - } - - tx.innerHTML = temp; - } - else - { - tx.innerHTML = ''; - } - } - } - ); -//]]></script> - -<style type="text/css"> - .wanok { background-color: rgb(144, 240, 144); } - .wanko { background-color: rgb(240, 144, 144); } - .wanrecov { background-color: rgb(240, 240, 0); } - .wanfail { background-color: rgb(255, 165, 0); } - .wanko, .wanok, .wanrecov, .wanfail { - padding: 0.4em; - margin: 0.4em; - } -</style> - -<fieldset class="cbi-section"> - <legend><%:Multi-WAN Status%></legend> - <div id="multiwan_status_text" style="text-align:center;"><em><%:Collecting data...%></em></div> -</fieldset> |