themes: require luci.version directly
[project/luci.git] / themes / luci-theme-freifunk-generic / luasrc / view / themes / freifunk-generic / footer.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11 -%>
12 <%
13         local ver = require "luci.version"
14
15         local xtime
16         if exectime then
17                 xtime = (string.format("%.2fs", os.clock() - exectime))
18         end
19 %>
20
21 </div>
22 <div class="clear"></div>
23 <div class="push"></div>
24 </div>
25
26 <div class="footer">
27 <p class="luci"><a href="http://luci.subsignal.org">Powered by <%= ver.luciname %> (<%= ver.luciversion %>)</a></p>
28 <% if xtime then %>
29 <p class="exectime">Script execution time: <%=xtime%></p>
30 <% end %>
31 </div>
32
33 </body>
34 </html>
35