From daee4a650eb4f0700074ee5d8e2f6b24c81d650e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 16 Jan 2015 21:33:34 +0100 Subject: themes: require luci.version directly Signed-off-by: Jo-Philipp Wich --- .../luasrc/view/themes/freifunk-generic/footer.htm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'themes/luci-theme-freifunk-generic') diff --git a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm index e9df8cda00..9f6a19c48c 100644 --- a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm +++ b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm @@ -9,10 +9,14 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -%> -<% local xtime -if exectime then - xtime = (string.format("%.2fs", os.clock() - exectime)) -end %> +<% + local ver = require "luci.version" + + local xtime + if exectime then + xtime = (string.format("%.2fs", os.clock() - exectime)) + end +%>
@@ -20,7 +24,7 @@ end %>