mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 06:22:49 +04:00
themes/freifunk-generic: fix error with version string display in header on BB
This commit is contained in:
@@ -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()">
|
||||
|
||||
Reference in New Issue
Block a user