From d3d750b6503322482cd638528b13ccc87dc41602 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Sun, 2 Jan 2011 12:09:54 +0000 Subject: [PATCH] applications/luci-olsr: Make the default gateway yellow in neigbors overview, thanks patrick at lunatiki dot de --- .../luasrc/view/status-olsr/neighbors.htm | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm b/applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm index 60afdc37d..46ebebf86 100644 --- a/applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm +++ b/applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm @@ -39,14 +39,19 @@ $Id: index.htm 6619 2010-12-05 15:02:44Z soma $ elseif link.Cost < 100 then color = "#ff6600" end + + defaultgw_color = "" + if link.defaultgw == 1 then + defaultgw_color = "#ffff99" + end %> -/cgi-bin-status.html"><%=link["Remote IP"]%> -/cgi-bin-status.html"><%=link["Hostname"]%> -<%=link["Local IP"]%> -<%=link["Local Device"]%> -<%=link.LQ%> -<%=link.NLQ%> +/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)%> <% end %> -- 2.25.1