applications/luci-olsr: Make the default gateway yellow in neigbors overview, thanks patrick at lunatiki dot de

This commit is contained in:
Manuel Munz 2011-01-02 12:09:54 +00:00
parent 50c69527e5
commit d3d750b650
1 changed files with 11 additions and 6 deletions

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