From 8a37f5600685b44848116e9670d14a7c255564e4 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Sun, 5 Dec 2010 15:02:44 +0000 Subject: applications/luci-olsr: Add Hostnames, show v6 infos. Most parts of this are from patrick(at)lunatiki(dot)de again, thanks. --- applications/luci-olsr/luasrc/view/status-olsr/hna.htm | 7 ++++++- applications/luci-olsr/luasrc/view/status-olsr/index.htm | 6 +++++- applications/luci-olsr/luasrc/view/status-olsr/routes.htm | 7 ++++++- 3 files changed, 17 insertions(+), 3 deletions(-) (limited to 'applications/luci-olsr/luasrc/view') diff --git a/applications/luci-olsr/luasrc/view/status-olsr/hna.htm b/applications/luci-olsr/luasrc/view/status-olsr/hna.htm index 0e153bbbc3..a7a14e4fad 100644 --- a/applications/luci-olsr/luasrc/view/status-olsr/hna.htm +++ b/applications/luci-olsr/luasrc/view/status-olsr/hna.htm @@ -24,7 +24,12 @@ $Id$ <% for k, route in ipairs(routes) do %> <%=route.Destination%> -<%=route.Gateway%> + +<%=route.Gateway%> +<% if route.Hostname then %> + / <%=route.Hostname%> +<% end %> + <% end %> diff --git a/applications/luci-olsr/luasrc/view/status-olsr/index.htm b/applications/luci-olsr/luasrc/view/status-olsr/index.htm index fc8f76e2c9..786c859545 100644 --- a/applications/luci-olsr/luasrc/view/status-olsr/index.htm +++ b/applications/luci-olsr/luasrc/view/status-olsr/index.htm @@ -19,7 +19,9 @@ $Id$ + + @@ -39,8 +41,10 @@ $Id$ end %> - + + + diff --git a/applications/luci-olsr/luasrc/view/status-olsr/routes.htm b/applications/luci-olsr/luasrc/view/status-olsr/routes.htm index 52bf101ccf..cad9c35884 100644 --- a/applications/luci-olsr/luasrc/view/status-olsr/routes.htm +++ b/applications/luci-olsr/luasrc/view/status-olsr/routes.htm @@ -40,7 +40,12 @@ $Id$ %> - + -- cgit v1.2.3
<%:Neighbour IP%><%:Hostname%> <%:Local interface IP%><%:Device%> LQ NLQ ETX
/cgi-bin-nodes.html"><%=link["Remote IP"]%>/cgi-bin-status.html"><%=link["Remote IP"]%>/cgi-bin-status.html"><%=link["Hostname"]%> <%=link["Local IP"]%><%=link["Local Device"]%> <%=link.LQ%> <%=link.NLQ%> <%=string.format("%.3f", link.Cost)%>
<%=route.Destination%><%=route["Gateway IP"]%> +/cgi-bin-status.html"><%=route["Gateway IP"]%> +<% if route.Hostname then %> + / <%=route.Hostname%> +<% end %> + <%=route.Interface%> <%=route.Metric%> <%=string.format("%.3f", tonumber(route.ETX) or 0)%>