diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-16 21:33:34 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-16 21:40:49 +0100 |
commit | daee4a650eb4f0700074ee5d8e2f6b24c81d650e (patch) | |
tree | cbd80d6cd241e02aa636bb248660921841e10097 /themes/luci-theme-bootstrap/luasrc | |
parent | 9d908ffd78111f2f9d660b9a063e38af72554c57 (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.htm | 11 |
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 %> |