applications/luci-olsr: Make the default gateway yellow in neigbors overview, thanks...
[project/luci.git] / applications / luci-olsr / luasrc / view / status-olsr / neighbors.htm
index 60afdc37ddab6fd2960905ecd27943e2cc837d10..46ebebf86833b9a4cdb1453330fb29d224e508ec 100644 (file)
@@ -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 %>