luci-app-bmx7: convert to JS

follow-up to f578786152

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2026-02-24 03:32:35 +01:00
parent b3dc47ea07
commit 0d2059f9b0
3 changed files with 13 additions and 13 deletions

View File

@@ -56,7 +56,7 @@
<div class="cbi-map">
<h2>Mesh nodes</h2>
<h2>{{ _('Mesh nodes') }}</h2>
<div class="cbi-map-descr"></div>
<div id="extra-info" class="info">
<br />
@@ -74,7 +74,7 @@
<div class="th"></div>
<div class="th">{{_('Name')}}</div>
<div class="th">{{_('Short ID')}}</div>
<div class="th">S/s/T/t</div>
<div class="th">{{ _('S/s/T/t') }}</div>
<div class="th">{{_('Primary IPv6')}}</div>
<div class="th">{{_('Via Neighbour')}}</div>
<div class="th">{{_('Metric')}}</div>
@@ -120,28 +120,28 @@
+ "<h4><u>" + name + '</u></h4>\n'
+ 'Node ID: ' + shortId + "</div>"
+ "<div class='inforow'>"
+ "<h5>Primary IPv6 address</h5>\n"
+ "<h5>{{ _('Primary IPv6 address') }}</h5>\n"
+ primaryIp + "</div>\n"
+ "<div class='inforow'>"
+ "<h5>Support & Trust</h5>\n"
+ "<h5>{{ _('Support & Trust') }}</h5>\n"
+ SsTt + "</div>\n"
+ "<div class='inforow'>"
+ "<h5>Node key</h5>\n"
+ "<h5>{{ _('Node key') }}</h5>\n"
+ nodeKey + "</div>\n"
+ "<div class='inforow newline'>"
+ "<h5>Via neighbour</h5>\n"
+ "<h5>{{ _('Via neighbour') }}</h5>\n"
+ nbName + "</div>\n"
+ "<div class='inforow'>"
+ "<h5>Via device</h5>\n"
+ "<h5>{{ _('Via device') }}</h5>\n"
+ dev + "</div>\n"
+ "<div class='inforow'>"
+ "<h5>Via link-local IPv6</h5>\n"
+ "<h5>{{ _('Via link-local IPv6') }}</h5>\n"
+ nbLocalIp + "</div>\n"
+ "<div class='inforow'>"
+ "<h5>Route metric</h5>\n"
+ "<h5>{{ _('Route metric') }}</h5>\n"
+ metric + "</div>\n"
+ "<div class='inforow'>"
+ "<h5>Desc. size</h5>\n"
+ "<h5>{{ _('Desc. size') }}</h5>\n"
+ descSize + "</div>\n"
+ "\n</div>";

View File

@@ -8,8 +8,8 @@
<img src="{{ resource }}/bmx7/bmx7logo.png" />
<br />
<br />
A mesh routing protocol for Linux devices.<br />
Visit <a href="http://bmx6.net">bmx6.net</a> for more information.<br />
{{ _('A mesh routing protocol for Linux devices.') }}<br />
{{ _('Visit %s for more information.').format('<a href="http://bmx6.net">bmx6.net</a>')}}<br />
<br />
</center>

View File

@@ -27,7 +27,7 @@
<div class="cbi-map">
<h2>Gateway announcements</h2>
<div class="cbi-map-descr">Networks announced by mesh nodes</div>
<div class="cbi-map-descr">{{ _('Networks announced by mesh nodes') }}</div>
<div class="cbi-section">
<legend>{{ _('Announcements') }}</legend>