summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr/luasrc/view/status-olsr/index.htm
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-07-16 02:38:45 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-07-16 02:38:45 +0000
commit79a35fe82515580995416eb44f33c0dbc36d8220 (patch)
tree670bbaa5324aa30e19f3d26559305c3017d7cd91 /applications/luci-olsr/luasrc/view/status-olsr/index.htm
parent25c82d73829c1b078429b7b4462364d0017caba2 (diff)
* luci/themes: layout changes for smalltext tables in openwrt.org theme
* luci/olsr: layout fixes for status pages
Diffstat (limited to 'applications/luci-olsr/luasrc/view/status-olsr/index.htm')
-rw-r--r--applications/luci-olsr/luasrc/view/status-olsr/index.htm6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-olsr/luasrc/view/status-olsr/index.htm b/applications/luci-olsr/luasrc/view/status-olsr/index.htm
index a38b63a36c..659d1a1a43 100644
--- a/applications/luci-olsr/luasrc/view/status-olsr/index.htm
+++ b/applications/luci-olsr/luasrc/view/status-olsr/index.htm
@@ -16,7 +16,7 @@ $Id$
<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>
@@ -30,7 +30,7 @@ $Id$
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
@@ -46,7 +46,7 @@ $Id$
<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>