Add notice about autoupdater to config mode

This commit is contained in:
ohrensessel 2014-06-26 19:55:52 +02:00
parent 99936deed8
commit 638aef092e
2 changed files with 12 additions and 0 deletions

View file

@ -11,6 +11,15 @@ f.reset = false
f.template = "gluon-config-mode/cbi/wizard"
f.submit = "Fertig"
if uci:get_bool("autoupdater", "settings", "enabled") then
f:set(nil, "autoupdater_msg", [[Dieser Knoten aktualisiert seine Firmware <b>automatisch</b>,
sobald eine neue Version vorliegt. Falls du dies nicht möchtest,
kannst du die Funktion im <i>Expertmode</i> deaktivieren.]])
else
f:set(nil, "autoupdater_msg", [[Dieser Knoten aktualisiert seine Firmware <b>nicht automatisch</b>.
Diese Funktion kannst du im <i>Expertmode</i> aktivieren.]])
end
s = f:section(SimpleSection, nil, nil)
o = s:option(Value, "_hostname", "Name dieses Knotens")

View file

@ -8,6 +8,9 @@
<p>
<%= template.render_string(site.config_mode.msg_welcome, {hostname=hostname, sysconfig=sysconfig}) %>
</p>
<p>
<%=self.data["autoupdater_msg"]%>
</p>
<% if not self.embedded then %>
<form method="post" enctype="multipart/form-data" action="<%=REQUEST_URI%>">