Skip to content
Snippets Groups Projects
Unverified Commit 490c5223 authored by David Bauer's avatar David Bauer Committed by GitHub
Browse files

Merge pull request #2200 from AiyionPrime/status_page_role

gluon-status-page: add role to status-page
parents 0ce961eb e6bdbe81
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
local util = require 'gluon.util' local util = require 'gluon.util'
local translations = {} local translations = {}
local site_i18n = i18n 'gluon-site'
local function _(v) local function _(v)
translations[v] = translate(v) translations[v] = translate(v)
...@@ -126,6 +127,9 @@ ...@@ -126,6 +127,9 @@
<%- end %> <%- end %>
</dd> </dd>
<%- end %> <%- end %>
<% if nodeinfo.system.role then -%>
<dt><%:Role%></dt><dd><%| site_i18n._translate('gluon-web-node-role:role:' .. nodeinfo.system.role) %></dd>
<%- end %>
<% if nodeinfo.software.autoupdater then -%> <% if nodeinfo.software.autoupdater then -%>
<dt><%:Automatic updates%></dt><dd><%| enabled(nodeinfo.software.autoupdater.enabled) %><%| <dt><%:Automatic updates%></dt><dd><%| enabled(nodeinfo.software.autoupdater.enabled) %><%|
nodeinfo.software.autoupdater.enabled and nodeinfo.software.autoupdater.enabled and
......
...@@ -103,6 +103,9 @@ msgstr "RAM" ...@@ -103,6 +103,9 @@ msgstr "RAM"
msgid "Received" msgid "Received"
msgstr "Empfangen" msgstr "Empfangen"
msgid "Role"
msgstr "Rolle"
msgid "Site" msgid "Site"
msgstr "Site" msgstr "Site"
......
...@@ -94,6 +94,9 @@ msgstr "" ...@@ -94,6 +94,9 @@ msgstr ""
msgid "Received" msgid "Received"
msgstr "" msgstr ""
msgid "Role"
msgstr ""
msgid "Site" msgid "Site"
msgstr "" msgstr ""
......
...@@ -19,6 +19,7 @@ if we ever add Russion to gluon-web, the following strings can be reused: ...@@ -19,6 +19,7 @@ if we ever add Russion to gluon-web, the following strings can be reused:
"Clients": "Клиенты", "Clients": "Клиенты",
"Transmitted": "Передано", "Transmitted": "Передано",
"Received": "Получено", "Received": "Получено",
"Role": "Роль",
"Forwarded": "Переправленно", "Forwarded": "Переправленно",
"Day": "День", "Day": "День",
"Days": "Дней", "Days": "Дней",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment