summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-olsr/luasrc/view/status-olsr/topology.htm
diff options
context:
space:
mode:
authorpmelange <isprotejesvalkata@gmail.com>2018-11-15 14:55:42 +0100
committerpmelange <isprotejesvalkata@gmail.com>2018-12-06 20:57:35 +0100
commit7387553a042c9357081e4baaa2141ce2d1964ecb (patch)
tree1d44f28b3405c397c7dfd53f24017378690a4102 /applications/luci-app-olsr/luasrc/view/status-olsr/topology.htm
parenta92c94df32eaf9d0693eb799bfcf5bd7e92151b8 (diff)
luci-app-olsr: make cosmetic changes.
modify the status tables so that then headers and columns align, values left justified. Additionally, add the openwrt style interface name to the interfaces table, change huge ETX numbers to 'infinate', and add the german translation for 'Selected'. Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
Diffstat (limited to 'applications/luci-app-olsr/luasrc/view/status-olsr/topology.htm')
-rw-r--r--applications/luci-app-olsr/luasrc/view/status-olsr/topology.htm16
1 files changed, 8 insertions, 8 deletions
diff --git a/applications/luci-app-olsr/luasrc/view/status-olsr/topology.htm b/applications/luci-app-olsr/luasrc/view/status-olsr/topology.htm
index 02fdfddac3..70b3d99854 100644
--- a/applications/luci-app-olsr/luasrc/view/status-olsr/topology.htm
+++ b/applications/luci-app-olsr/luasrc/view/status-olsr/topology.htm
@@ -27,7 +27,7 @@ local olsrtools = require "luci.tools.olsr"
</div>
<% for k, route in ipairs(routes) do
- local cost = string.format("%.3f", tonumber(route.tcEdgeCost/1024) or 0)
+ local cost = string.format("%.3f", tonumber(route.tcEdgeCost) or 0)
local color = olsrtools.etx_color(tonumber(cost))
local lq = string.format("%.3f", tonumber(route.linkQuality) or 0)
local nlq = string.format("%.3f", tonumber(route.neighborLinkQuality) or 0)
@@ -37,19 +37,19 @@ local olsrtools = require "luci.tools.olsr"
<% if route.proto == "6" then %>
- <div class="td cbi-section-table-cell"><a href="http://[<%=route.destinationIP%>]/cgi-bin-status.html"><%=route.destinationIP%></a></div>
- <div class="td cbi-section-table-cell"><a href="http://[<%=route.lastHopIP%>]/cgi-bin-status.html"><%=route.lastHopIP%></a></div>
+ <div class="td cbi-section-table-cell" style="text-align: left"><a href="http://[<%=route.destinationIP%>]/cgi-bin-status.html"><%=route.destinationIP%></a></div>
+ <div class="td cbi-section-table-cell" style="text-align: left"><a href="http://[<%=route.lastHopIP%>]/cgi-bin-status.html"><%=route.lastHopIP%></a></div>
<% else %>
- <div class="td cbi-section-table-cell"><a href="http://<%=route.destinationIP%>/cgi-bin-status.html"><%=route.destinationIP%></a></div>
- <div class="td cbi-section-table-cell"><a href="http://<%=route.lastHopIP%>/cgi-bin-status.html"><%=route.lastHopIP%></a></div>
+ <div class="td cbi-section-table-cell" style="text-align: left"><a href="http://<%=route.destinationIP%>/cgi-bin-status.html"><%=route.destinationIP%></a></div>
+ <div class="td cbi-section-table-cell" style="text-align: left"><a href="http://<%=route.lastHopIP%>/cgi-bin-status.html"><%=route.lastHopIP%></a></div>
<%end%>
- <div class="td cbi-section-table-cell"><%=lq%></div>
- <div class="td cbi-section-table-cell"><%=nlq%></div>
- <div class="td cbi-section-table-cell" style="background-color:<%=color%>"><%=cost%></div>
+ <div class="td cbi-section-table-cell" style="text-align: left"><%=lq%></div>
+ <div class="td cbi-section-table-cell" style="text-align: left"><%=nlq%></div>
+ <div class="td cbi-section-table-cell" style="background-color:<%=color%>; text-align: left"><%=cost%></div>
</div>
<% i = ((i % 2) + 1)