build: split into luci and luci-addons packages
[project/luci.git] / modules / niu / luasrc / view / niu / network / warn_ip_change.htm
index b5ebdd7..c8a7875 100644 (file)
@@ -1,2 +1,11 @@
-<strong>Warning!<br />
-Device IP has changed.</strong>
\ No newline at end of file
+<%
+local http = require "luci.http"
+local dsp = require "luci.dispatcher"
+local ip = require "luci.model.uci".inst:get("network", "lan", "ipaddr")
+local url = (http.getenv("HTTPS") and "https" or "http") .. "://" .. ip ..
+dsp.build_url("niu")
+%>
+
+<div style="color: red">Warning! The device IP-address has been changed.<br />
+It will be available in a few seconds at <a href="<%=url%>"><%=url%></a></div>
+<br />
\ No newline at end of file