summaryrefslogtreecommitdiff
path: root/luci2
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-11-04 17:53:36 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-11-04 17:53:36 +0000
commit9cba4e56be2b578467a8b54f5841bdbbbb3fdc0c (patch)
treee70498adfa8b2a98d7504f185ee3d2cd96334abd /luci2
parentfb7cdeab8859b52ee45e69a21ffe2cd63d96ea31 (diff)
downloadluci2-ui-9cba4e56be2b578467a8b54f5841bdbbbb3fdc0c.tar.gz
luci2: remove dead view code
Diffstat (limited to 'luci2')
-rw-r--r--luci2/htdocs/luci2/template/system.routes.htm3
-rw-r--r--luci2/htdocs/luci2/view/system.routes.js79
2 files changed, 0 insertions, 82 deletions
diff --git a/luci2/htdocs/luci2/template/system.routes.htm b/luci2/htdocs/luci2/template/system.routes.htm
deleted file mode 100644
index aa35a1e..0000000
--- a/luci2/htdocs/luci2/template/system.routes.htm
+++ /dev/null
@@ -1,3 +0,0 @@
-<div id="arp_table"></div>
-<div id="route_table"></div>
-<div id="route6_table"></div>
diff --git a/luci2/htdocs/luci2/view/system.routes.js b/luci2/htdocs/luci2/view/system.routes.js
deleted file mode 100644
index 249acdf..0000000
--- a/luci2/htdocs/luci2/view/system.routes.js
+++ /dev/null
@@ -1,79 +0,0 @@
-L.ui.view.extend({
- title: L.tr('Routes'),
- description: L.tr('The following rules are currently active on this system.'),
- execute: function() {
- return $.when(
- L.network.getARPTable().then(function(arp) {
- var arpTable = new L.ui.table({
- caption: L.tr('ARP'),
- columns: [{
- caption: L.tr('IPv4-Address'),
- key: 'ipaddr'
- }, {
- caption: L.tr('MAC-Address'),
- key: 'macaddr'
- }, {
- caption: L.tr('Interface'),
- key: 'device'
- }]
- });
-
- arpTable.rows(arp);
- arpTable.insertInto('#arp_table');
- }),
- L.network.getRoutes().then(function(routes) {
- var routeTable = new L.ui.table({
- caption: L.tr('Active IPv4-Routes'),
- columns: [{
- caption: L.tr('Target'),
- key: 'target'
- }, {
- caption: L.tr('Gateway'),
- key: 'nexthop'
- }, {
- caption: L.tr('Metric'),
- key: 'metric'
- }, {
- caption: L.tr('Interface'),
- key: 'device'
- }]
- });
-
- routeTable.rows(routes);
- routeTable.insertInto('#route_table');
- }),
- L.network.getIPv6Routes().then(function(routes) {
- var route6Table = new L.ui.table({
- caption: L.tr('Active IPv6-Routes'),
- columns: [{
- caption: L.tr('Target'),
- key: 'target'
- }, {
- caption: L.tr('Gateway'),
- key: 'nexthop'
- }, {
- caption: L.tr('Source'),
- key: 'source'
- }, {
- caption: L.tr('Metric'),
- key: 'metric'
- }, {
- caption: L.tr('Interface'),
- key: 'device'
- }]
- });
-
- for (var i = 0; i < routes.length; i++)
- {
- var prefix = routes[i].target.substr(0, 5).toLowerCase();
- if (prefix == 'fe80:' || prefix == 'fe90:' || prefix == 'fea0:' || prefix == 'feb0:' || prefix == 'ff00:')
- continue;
-
- route6Table.row(routes[i]);
- }
-
- route6Table.insertInto('#route6_table');
- })
- )
- }
-});