summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-freifunk-generic/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-freifunk-generic/luasrc
parent9d908ffd78111f2f9d660b9a063e38af72554c57 (diff)
themes: require luci.version directly
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'themes/luci-theme-freifunk-generic/luasrc')
-rw-r--r--themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm14
1 files changed, 9 insertions, 5 deletions
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
+%>
</div>
<div class="clear"></div>
@@ -20,7 +24,7 @@ end %>
</div>
<div class="footer">
-<p class="luci"><a href="http://luci.subsignal.org">Powered by <%= luci.__appname__ .. " (" .. luci.__version__ .. ")" %></a></p>
+<p class="luci"><a href="http://luci.subsignal.org">Powered by <%= ver.luciname %> (<%= ver.luciversion %>)</a></p>
<% if xtime then %>
<p class="exectime">Script execution time: <%=xtime%></p>
<% end %>