<%+header%>
<h1><%:olsrhna%></h1>
<br />
-<table cellspacing="0" cellpadding="6">
+<table class="smalltext" cellspacing="0" cellpadding="6">
<tr>
<th><%:destination%></th>
<th><%:gateway%></th>
<h1><%:olsr_links%></h1>
<p><%:olsr_links1%></p>
<br />
-<table cellspacing="0" cellpadding="6">
+<table class="smalltext" cellspacing="0" cellpadding="6">
<tr>
<th><%:destination%></th>
<th><%:local%></th>
end
local color = "#bb3333"
- link.ETX = tonumber(link.ETX)
+ link.ETX = tonumber(link.ETX) or 0
if link.ETX == 0 then
color = "#bb3333"
elseif link.ETX < 4 then
<td><%=link["Local IP"]%></td>
<td><%=link.LinkQuality%></td>
<td><%=link.NLQ%></td>
-<td style="background-color:<%=color%>"><%=link.ETX%></td>
+<td style="background-color:<%=color%>"><%=string.format("%%.3f", link.ETX)%></td>
</tr>
<% end %>
</table>
<%+header%>
<h1><%:olsr_mid%></h1>
<br />
-<table cellspacing="0" cellpadding="6">
+<table class="smalltext" cellspacing="0" cellpadding="6">
<tr>
<th><%:node%></th>
<th><%:aliases%></th>
<%+header%>
<h1><%:olsr_routes%></h1>
<br />
-<table cellspacing="0" cellpadding="6">
+<table class="smalltext" cellspacing="0" cellpadding="6">
<tr>
<th><%:destination%></th>
<th><%:gateway%></th>
<td><%=route.Gateway%></td>
<td><%=route.Interface%></td>
<td><%=route.Metric%></td>
-<td style="background-color:<%=color%>"><%=route.ETX%></td>
+<td style="background-color:<%=color%>"><%=string.format("%%.3f", tonumber(route.ETX) or 0)%></td>
</tr>
<% end %>
</table>
<%+header%>
<h1><%:olsr_topology%></h1>
<br />
-<table cellspacing="0" cellpadding="6">
+<table class="smalltext" cellspacing="0" cellpadding="6">
<tr>
<th><%:destination%></th>
<th><%:olsr_lasthop%></th>
<td><a href="http://<%=route["Last hop IP"]%>"><%=route["Last hop IP"]%></a></td>
<td><%=route.LQ%></td>
<td><%=route.ILQ%></td>
-<td><%=route.ETX%></td>
+<td><%=string.format("%%.3f", tonumber(route.ETX) or 0)%></td>
</tr>
<% end %>
</table>
border-right: 1px solid #666666;
border-bottom: 1px solid #666666;
font-size: 90%;
+ width: 80%;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+table.smalltext tr:hover td {
+ background-color: #bbddee;
}
table.smalltext tr th {
padding: 0 0.25em;
border-left: 1px solid #666666;
+ text-align: left;
}
table.smalltext tr td {