Skip to content
Snippets Groups Projects
Commit 5c121c16 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-config-mode: allow using templates for texts again

parent a3ed0dde
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ function action_reboot()
if nixio.fork() ~= 0 then
luci.template.render("gluon-config-mode/reboot",
{pubkey=pubkey, hostname=hostname, site=site})
{luci=luci, pubkey=pubkey, hostname=hostname, site=site})
else
debug.setfenv(io.stdout, debug.getfenv(io.open '/dev/null'))
io.stdout:close()
......
<%-
local site = require 'gluon.site_config'
local sysconfig = require 'gluon.sysconfig'
local template = require 'luci.template'
-%>
<h2>Willkommen!</h2>
<p>
<%= site.config_mode.msg_welcome %>
<%= template.render_string(site.config_mode.msg_welcome, {hostname=hostname, sysconfig=sysconfig}) %>
</p>
<% if not self.embedded then %>
......
......@@ -13,17 +13,17 @@
<% if pubkey then %>
<fieldset class="cbi-section">
<p>
<%= site.config_mode.msg_pubkey %>
<%= luci.template.render_string(site.config_mode.msg_pubkey) %>
</p>
<div class="the-key">
# Hostname: <%= hostname %>
# <%= hostname %>
<br/>
<%= pubkey %>
</div>
</fieldset>
<% end %>
<fieldset class="cbi-section">
<%= site.config_mode.msg_reboot %>
<%= luci.template.render_string(site.config_mode.msg_reboot) %>
</fieldset>
</div>
</div>
......
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