gluon-status-page: add domain and site (#1820)

This commit is contained in:
lemoer 2019-09-30 02:00:17 +02:00 committed by Martin Weinelt
parent 6d64057536
commit 21397ce678
4 changed files with 17 additions and 1 deletions

View File

@ -116,6 +116,10 @@
<% if nodeinfo.software.fastd then -%>
<dt><%:Mesh VPN%></dt><dd><%| enabled(nodeinfo.software.fastd.enabled) %></dd>
<%- end %>
<dt><%:Site%></dt><dd><%| site.site_name() %></dd>
<% if nodeinfo.system.domain_code then -%>
<dt><%:Domain%></dt><dd><%| site.domain_names[nodeinfo.system.domain_code]() %></dd>
<%- end %>
<% 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,9 @@ msgstr ""
msgid "not connected"
msgstr ""
msgid "Domain"
msgstr ""
msgid "Site"
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))