projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-theme-openwrt: fix version display
[project/luci.git]
/
themes
/
luci-theme-openwrt
/
luasrc
/
view
/
themes
/
openwrt.org
/
header.htm
diff --git
a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
index
51505d0
..
e17df95
100644
(file)
--- a/
themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
+++ b/
themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
@@
-9,6
+9,7
@@
local util = require "luci.util"
local http = require "luci.http"
local disp = require "luci.dispatcher"
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 }
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">
<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%>:
<%: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%>: