gluon-status-page: add domain and site to status page

This commit is contained in:
lemoer 2019-09-15 15:26:28 +02:00
parent 2792309cd4
commit b9c54451fd
4 changed files with 12 additions and 1 deletions

View File

@ -116,6 +116,8 @@
<% if nodeinfo.software.fastd then -%>
<dt><%:Mesh VPN%></dt><dd><%| enabled(nodeinfo.software.fastd.enabled) %></dd>
<%- end %>
<dt>Domain</dt><dd><%| site.domain_names[nodeinfo.system.domain_code]() %></dd>
<dt>Site</dt><dd><%| site.site_name() %></dd>
<% if nodeinfo.software.autoupdater then -%>
<dt><%:Automatic updates%></dt><dd><%| enabled(nodeinfo.software.autoupdater.enabled) %><%|
nodeinfo.software.autoupdater.enabled and

View File

@ -117,3 +117,9 @@ msgstr "aktiviert"
msgid "not connected"
msgstr "nicht verbunden"
msgid "Domain"
msgstr "Domäne"
msgid "Site"
msgstr "Site"

View File

@ -108,3 +108,6 @@ msgstr ""
msgid "not connected"
msgstr ""
msgid "Domain"
msgstr ""

View File

@ -82,5 +82,5 @@ entry({}, call(function(http, renderer)
end
renderer.render('status-page', { nodeinfo = nodeinfo }, 'gluon-status-page')
renderer.render('status-page', { nodeinfo = nodeinfo, site = site }, 'gluon-status-page')
end))