themes/freifunk-generic: fix error with version string display in header on BB
authorManuel Munz <munz@comuno.net>
Thu, 19 Feb 2015 19:20:31 +0000 (20:20 +0100)
committerManuel Munz <munz@comuno.net>
Thu, 19 Feb 2015 19:20:31 +0000 (20:20 +0100)
themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm

index d74916aea1dc3b0cd9575449693f909631b58d96..20a41be855bdbb9b3d0628039e27e8434495a06b 100644 (file)
@@ -10,6 +10,7 @@
        local util = require "luci.util"
        local http = require "luci.http"
        local disp = require "luci.dispatcher"
+       local version = require "luci.version"
 
        local sysinfo = util.ubus("system", "info") or { }
        local loadinfo = sysinfo.load or { 0, 0, 0 }
                        <%end%>
                </div>
                <div class="header_right">
-                       <%=luci.version.distversion%><br />
+                       <%=version.distversion%><br />
                        <%:Load%>: <%="%.2f" % (loadinfo[1] / 65535.0)%> <%="%.2f" % (loadinfo[2] / 65535.0)%> <%="%.2f" % (loadinfo[3] / 65535.0)%><br />
                        <%:Hostname%>: <%=boardinfo.hostname or "?"%><br />
                        <span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">