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 %>