diff options
author | pmelange <isprotejesvalkata@gmail.com> | 2018-11-15 14:55:42 +0100 |
---|---|---|
committer | pmelange <isprotejesvalkata@gmail.com> | 2018-12-06 20:57:35 +0100 |
commit | 7387553a042c9357081e4baaa2141ce2d1964ecb (patch) | |
tree | 1d44f28b3405c397c7dfd53f24017378690a4102 /applications/luci-app-olsr-services/luasrc | |
parent | a92c94df32eaf9d0693eb799bfcf5bd7e92151b8 (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-services/luasrc')
-rw-r--r-- | applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm b/applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm index 91624f3b3..d1fdb2285 100644 --- a/applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm +++ b/applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm @@ -132,9 +132,9 @@ end var service = info[idx]; s += String.format( '<div class="tr cbi-section-table-row cbi-rowstyle-'+(1 + (idx % 2))+'">' + - '<div class="td cbi-section-table-titles"><a href="%s">%s</a></div>' + - '<div class="td cbi-section-table-titles">%s</div>' + - '<div class="td cbi-section-table-titles"><a href="http://%s/cgi-bin-status.html">%s</a></div>' + + '<div class="td cbi-section-table-cell" style="text-align: left"><a href="%s">%s</a></div>' + + '<div class="td cbi-section-table-cell" style="text-align: left">%s</div>' + + '<div class="td cbi-section-table-cell" style="text-align: left"><a href="http://%s/cgi-bin-status.html">%s</a></div>' + '</div>', service.url, service.descr, service.proto, service.origin_link, service.origin || '?' ); @@ -153,15 +153,12 @@ end <fieldset class="cbi-section"> <legend><%:Internal services%></legend> <div class="table cbi-section-table"> - <div class="thead"> <div class="tr cbi-section-table-titles"> <div class="th cbi-section-table-cell"><%:Url%></div> <div class="th cbi-section-table-cell"><%:Protocol%></div> <div class="th cbi-section-table-cell"><%:Source%></div> </div> - </div> - <div class="tbody" id="olsr_services"> <% for k, line in ipairs(services) do local field = {} @@ -178,13 +175,12 @@ end %> <div class="tr cbi-section-table-row cbi-rowstyle-<%=i%>"> - <div class="td cbi-section-table-titles"><a href="<%=url%>"><%=descr%></a></div> - <div class="td cbi-section-table-titles"><%=proto%></div> - <div class="td cbi-section-table-titles"><a href="http://<%=origin_link%>/cgi-bin-status.html"><%=origin%></a></div> + <div class="td cbi-section-table-cell" style="text-align: left"><a href="<%=url%>"><%=descr%></a></div> + <div class="td cbi-section-table-cell" style="text-align: left"><%=proto%></div> + <div class="td cbi-section-table-cell" style="text-align: left"><a href="http://<%=origin_link%>/cgi-bin-status.html"><%=origin%></a></div> </div> <% i = ((i % 2) + 1) end %> - </div> </div> <br /> <%=last_update%> |