* luci/themes: layout changes for smalltext tables in openwrt.org theme
[project/luci.git] / applications / luci-olsr / luasrc / view / status-olsr / routes.htm
index c8785b32cbfed6d6b08365f0289907ff2c9524a4..6f5b61edbe9feaac733b59d25d791842f2f0c3ea 100644 (file)
@@ -15,7 +15,7 @@ $Id$
 <%+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>
@@ -42,7 +42,7 @@ $Id$
 <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>