summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-bootstrap/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-01-16 21:33:34 +0100
committerJo-Philipp Wich <jow@openwrt.org>2015-01-16 21:40:49 +0100
commitdaee4a650eb4f0700074ee5d8e2f6b24c81d650e (patch)
treecbd80d6cd241e02aa636bb248660921841e10097 /themes/luci-theme-bootstrap/luasrc
parent9d908ffd78111f2f9d660b9a063e38af72554c57 (diff)
themes: require luci.version directly
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'themes/luci-theme-bootstrap/luasrc')
-rw-r--r--themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm11
1 files changed, 3 insertions, 8 deletions
diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm
index 09b497a101..6b028d7ffd 100644
--- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm
+++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm
@@ -12,20 +12,15 @@ You may obtain a copy of the License at
-%>
<%
+ local ver = require "luci.version"
local disp = require "luci.dispatcher"
-
local request = disp.context.path
-
local category = request[1]
-
local tree = disp.node()
-
local categories = disp.node_childs(tree)
%>
- <footer><a href="http://luci.subsignal.org/">Powered by <%= luci.__appname__ .. " (" .. luci.__version__ .. ")" %></a>
-
- <%=luci.version.distversion%>
-
+ <footer>
+ <a href="http://luci.subsignal.org/">Powered by <%= ver.luciname %> (<%= ver.luciversion %>)</a> / <%= ver.distversion %>
<% if #categories > 1 then %>
<ul class="breadcrumb pull-right" id="modemenu">
<% for i, r in ipairs(categories) do %>