luci-theme-openwrt: fix version display
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 16 Jan 2015 23:40:31 +0000 (00:40 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 16 Jan 2015 23:40:31 +0000 (00:40 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm

index 51505d081f8fa70a5af678a9b2d74c7f43bbed4b..e17df95d2b0d802eb7a0cdf29926820f93cb6697 100644 (file)
@@ -9,6 +9,7 @@
        local util = require "luci.util"
        local http = require "luci.http"
        local disp = require "luci.dispatcher"
+       local ver  = require "luci.version"
 
        local sysinfo = util.ubus("system", "info") or { }
        local loadinfo = sysinfo.load or { 0, 0, 0 }
 <h2 class="navigation"><a id="navigation" name="navigation"><%:Navigation%></a></h2>
 
 <div class="hostinfo">
-       <%=(boardinfo.hostname or "?")%> | <%=luci.version.distversion%> |
+       <%=(boardinfo.hostname or "?")%> | <%=ver.distversion%> |
        <%:Load%>: <%="%.2f" % loadinfo[1] / 65535.0%> <%="%.2f" % loadinfo[2] / 65535.0%> <%="%.2f" % loadinfo[3] / 65535.0%>
        <span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">
                | <%:Auto Refresh%>: