summaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorManuel Munz <munz@comuno.net>2015-02-19 20:20:31 +0100
committerManuel Munz <munz@comuno.net>2015-02-19 20:20:31 +0100
commit8b123df2874a6eb17a6150667ba48247bad847ec (patch)
tree1fd46c1593aeb4f8fc7933fc734aa5191e6c60c9 /themes
parentce0b7cc96eda1ad62926018869badb3fce02e8c4 (diff)
themes/freifunk-generic: fix error with version string display in header on BB
Diffstat (limited to 'themes')
-rw-r--r--themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm3
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
index d74916aea..20a41be85 100644
--- a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
+++ b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
@@ -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 }
@@ -122,7 +123,7 @@
<%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()">