Changeset 6653
- Timestamp:
- 12/17/10 03:14:28 (2 years ago)
- Location:
- luci/trunk/applications/luci-olsr
- Files:
-
- 6 added
- 1 removed
- 2 modified
-
htdocs (added)
-
htdocs/cgi-bin-nodes.html (added)
-
htdocs/cgi-bin-status.html (added)
-
luasrc/controller/olsr.lua (modified) (5 diffs)
-
luasrc/view/status-olsr/index.htm (deleted)
-
luasrc/view/status-olsr/interfaces.htm (added)
-
luasrc/view/status-olsr/neighbors.htm (added)
-
luasrc/view/status-olsr/overview.htm (added)
-
luasrc/view/status-olsr/smartgw.htm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/applications/luci-olsr/luasrc/controller/olsr.lua
r6627 r6653 10 10 11 11 local page = node("admin", "status", "olsr") 12 page.target = call("action_index")12 page.target = template("status-olsr/overview") 13 13 page.title = "OLSR" 14 14 page.i18n = "olsr" 15 15 page.subindex = true 16 17 local page = node("admin", "status", "olsr", "neighbors") 18 page.target = call("action_neigh") 19 page.title = i18n("Neighbors") 20 page.subindex = true 21 page.order = 5 16 22 17 23 local page = node("admin", "status", "olsr", "routes") … … 39 45 page.title = "SmartGW" 40 46 page.order = 60 47 48 local page = node("admin", "status", "olsr", "interfaces") 49 page.target = call("action_interfaces") 50 page.title = i18n("Interfaces") 51 page.order = 70 41 52 42 53 local ol = entry( … … 78 89 end 79 90 80 function action_ index()91 function action_neigh() 81 92 local data = fetch_txtinfo("links") 82 93 … … 103 114 table.sort(data.Links, compare) 104 115 105 luci.template.render("status-olsr/ index", {links=data.Links})116 luci.template.render("status-olsr/neighbors", {links=data.Links}) 106 117 end 107 118 … … 202 213 end 203 214 204 215 function action_interfaces() 216 local data = fetch_txtinfo("interfaces") 217 218 if not data or not data.Interfaces then 219 luci.template.render("status-olsr/error_olsr") 220 return nil 221 end 222 223 luci.template.render("status-olsr/interfaces", {iface=data.Interfaces}) 224 end 205 225 206 226 -- Internal -
luci/trunk/applications/luci-olsr/luasrc/view/status-olsr/smartgw.htm
r6627 r6653 3 3 Copyright 2008 Steven Barth <steven@midlink.org> 4 4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> 5 Copyright 2010 Manuel Munz <freifunk at somakoma dot de> 5 6 6 7 Licensed under the Apache License, Version 2.0 (the "License"); … … 9 10 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 -%> 11 13 12 $Id: mid.htm 5448 2009-10-31 15:54:11Z jow $13 14 -%>15 14 <% 16 15 require("luci.model.uci")
