luci-theme-openwrt: fix version display
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
41d2b33087
commit
4abf1caa3f
1 changed files with 2 additions and 1 deletions
|
@ -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 }
|
||||
|
@ -119,7 +120,7 @@
|
|||
<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%>:
|
||||
|
|
Loading…
Reference in a new issue