From 638aef092e66f802c65ad35662a3da13c6b59790 Mon Sep 17 00:00:00 2001 From: ohrensessel Date: Thu, 26 Jun 2014 19:55:52 +0200 Subject: [PATCH] Add notice about autoupdater to config mode --- .../lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua | 9 +++++++++ .../lib/lua/luci/view/gluon-config-mode/cbi/wizard.htm | 3 +++ 2 files changed, 12 insertions(+) diff --git a/ffhh-config-mode/files/usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua b/ffhh-config-mode/files/usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua index 8403e55..8f5bf66 100644 --- a/ffhh-config-mode/files/usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua +++ b/ffhh-config-mode/files/usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua @@ -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 automatisch, + sobald eine neue Version vorliegt. Falls du dies nicht möchtest, + kannst du die Funktion im Expertmode deaktivieren.]]) +else + f:set(nil, "autoupdater_msg", [[Dieser Knoten aktualisiert seine Firmware nicht automatisch. + Diese Funktion kannst du im Expertmode aktivieren.]]) +end + s = f:section(SimpleSection, nil, nil) o = s:option(Value, "_hostname", "Name dieses Knotens") diff --git a/ffhh-config-mode/files/usr/lib/lua/luci/view/gluon-config-mode/cbi/wizard.htm b/ffhh-config-mode/files/usr/lib/lua/luci/view/gluon-config-mode/cbi/wizard.htm index cadfb00..cc5ce36 100644 --- a/ffhh-config-mode/files/usr/lib/lua/luci/view/gluon-config-mode/cbi/wizard.htm +++ b/ffhh-config-mode/files/usr/lib/lua/luci/view/gluon-config-mode/cbi/wizard.htm @@ -8,6 +8,9 @@

<%= template.render_string(site.config_mode.msg_welcome, {hostname=hostname, sysconfig=sysconfig}) %>

+

+<%=self.data["autoupdater_msg"]%> +

<% if not self.embedded then %>