From f51eac7582a7896cbd0e1da58e8a001e3d4dc9fe Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 22 May 2018 22:48:27 +0200 Subject: [PATCH] gluon-status-page: add contact information again The field was accidentally removed during the status-page rewrite. Fixes #1401 --- .../files/lib/gluon/status-page/view/status-page.html | 3 +++ package/gluon-status-page/i18n/de.po | 3 +++ package/gluon-status-page/i18n/gluon-status-page.pot | 3 +++ 3 files changed, 9 insertions(+) diff --git a/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html b/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html index 17e2a8de..bf55eab6 100644 --- a/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html +++ b/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html @@ -100,6 +100,9 @@

<%:Overview%>

<%:Node name%>
<%| nodeinfo.hostname %>
+ <% if nodeinfo.owner and nodeinfo.owner.contact then -%> +
<%:Contact%>
<%| nodeinfo.owner.contact %>
+ <%- end %>
<%:Model%>
<%| nodeinfo.hardware.model %>
<%:Primary MAC address%>
<%| nodeinfo.network.mac %>
<%:IP address%>
<%= pcdata(table.concat(sorted(nodeinfo.network.addresses), '\n')):gsub('\n', '
') %>
diff --git a/package/gluon-status-page/i18n/de.po b/package/gluon-status-page/i18n/de.po index b6ff1a78..9454dad2 100644 --- a/package/gluon-status-page/i18n/de.po +++ b/package/gluon-status-page/i18n/de.po @@ -31,6 +31,9 @@ msgstr "Automatische Updates" msgid "Clients" msgstr "Clients" +msgid "Contact" +msgstr "Kontakt" + msgid "Distance" msgstr "Entfernung" diff --git a/package/gluon-status-page/i18n/gluon-status-page.pot b/package/gluon-status-page/i18n/gluon-status-page.pot index b4c3882e..56b02dae 100644 --- a/package/gluon-status-page/i18n/gluon-status-page.pot +++ b/package/gluon-status-page/i18n/gluon-status-page.pot @@ -22,6 +22,9 @@ msgstr "" msgid "Clients" msgstr "" +msgid "Contact" +msgstr "" + msgid "Distance" msgstr ""