gluon-config-mode-core: make welcome and reboot message optional
Make use of our new _translate() function.
This commit is contained in:
parent
1d7b4482b7
commit
f458d788c8
@ -1,9 +1,12 @@
|
|||||||
<%-
|
<%-
|
||||||
local sysconfig = require 'gluon.sysconfig'
|
local sysconfig = require 'gluon.sysconfig'
|
||||||
|
|
||||||
|
local msg = _translate('gluon-config-mode:welcome')
|
||||||
|
if not msg then return end
|
||||||
-%>
|
-%>
|
||||||
<p>
|
<p>
|
||||||
<%=
|
<%
|
||||||
renderer.render_string(translate('gluon-config-mode:welcome'), {
|
renderer.render_string(msg, {
|
||||||
hostname = hostname,
|
hostname = hostname,
|
||||||
sysconfig = sysconfig,
|
sysconfig = sysconfig,
|
||||||
})
|
})
|
||||||
|
@ -7,7 +7,8 @@ local uci = require("simple-uci").cursor()
|
|||||||
local hostname = pretty_hostname.get(uci)
|
local hostname = pretty_hostname.get(uci)
|
||||||
local contact = uci:get_first('gluon-node-info', 'owner', 'contact')
|
local contact = uci:get_first('gluon-node-info', 'owner', 'contact')
|
||||||
|
|
||||||
local msg = translate('gluon-config-mode:reboot')
|
local msg = _translate('gluon-config-mode:reboot')
|
||||||
|
if not msg then return end
|
||||||
|
|
||||||
renderer.render_string(msg, {
|
renderer.render_string(msg, {
|
||||||
hostname = hostname,
|
hostname = hostname,
|
||||||
|
Loading…
Reference in New Issue
Block a user