From: Jo-Philipp Wich Date: Mon, 4 Nov 2013 17:53:36 +0000 (+0000) Subject: luci2: remove dead view code X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci2%2Fui.git;a=commitdiff_plain;h=9cba4e56be2b578467a8b54f5841bdbbbb3fdc0c luci2: remove dead view code --- 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 @@ -
-
-
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'); - }) - ) - } -});