diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-01-02 12:09:54 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-01-02 12:09:54 +0000 |
commit | d3d750b6503322482cd638528b13ccc87dc41602 (patch) | |
tree | 25f913cb8e2d447c68a59e79a4d9fd16db7270c5 /applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm | |
parent | 50c69527e538c057fb652d49cf6582603ee5da79 (diff) |
applications/luci-olsr: Make the default gateway yellow in neigbors overview, thanks patrick at lunatiki dot de
Diffstat (limited to 'applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm')
-rw-r--r-- | applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm | 17 |
1 files 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 60afdc37dd..46ebebf868 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 %> <tr> -<td><a href="http://<%=link["Remote IP"]%>/cgi-bin-status.html"><%=link["Remote IP"]%></a></td> -<td><a href="http://<%=link["Hostname"]%>/cgi-bin-status.html"><%=link["Hostname"]%></a></td> -<td><%=link["Local IP"]%></td> -<td><%=link["Local Device"]%></td> -<td><%=link.LQ%></td> -<td><%=link.NLQ%></td> +<td style="background-color:<%=defaultgw_color%>"><a href="http://<%=link["Remote IP"]%>/cgi-bin-status.html"><%=link["Remote IP"]%></a></td> +<td style="background-color:<%=defaultgw_color%>"><a href="http://<%=link["Hostname"]%>/cgi-bin-status.html"><%=link["Hostname"]%></a></td> +<td style="background-color:<%=defaultgw_color%>"><%=link["Local IP"]%></td> +<td style="background-color:<%=defaultgw_color%>"><%=link["Local Device"]%></td> +<td style="background-color:<%=defaultgw_color%>"><%=link.LQ%></td> +<td style="background-color:<%=defaultgw_color%>"><%=link.NLQ%></td> <td style="background-color:<%=color%>"><%=string.format("%.3f", link.Cost)%></td> </tr> <% end %> |