From 4abf1caa3f088701fcb8bd428e7e78f74ef5e377 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 17 Jan 2015 00:40:31 +0100 Subject: luci-theme-openwrt: fix version display Signed-off-by: Jo-Philipp Wich --- themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'themes/luci-theme-openwrt/luasrc/view') 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 51505d081f..e17df95d2b 100644 --- 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 ver = require "luci.version" local sysinfo = util.ubus("system", "info") or { } local loadinfo = sysinfo.load or { 0, 0, 0 } @@ -119,7 +120,7 @@
- <%=(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%>