projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
themes/freifunk-generic: Prevent crash when exectime is not set.
[project/luci.git]
/
themes
/
freifunk-generic
/
luasrc
/
view
/
themes
/
freifunk-generic
/
footer.htm
diff --git
a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm
b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm
index
98d48ad
..
1648562
100644
(file)
--- a/
themes/freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm
+++ b/
themes/freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm
@@
-12,10
+12,23
@@
You may obtain a copy of the License at
$Id: footer.htm 4185 2009-01-30 14:00:35Z jow $
-%>
$Id: footer.htm 4185 2009-01-30 14:00:35Z jow $
-%>
+<% local xtime
+if exectime then
+ xtime = (string.format("%.2fs", os.clock() - exectime))
+end %>
+
+</div>
<div class="clear"></div>
<div class="clear"></div>
+<div class="push"></div>
</div>
</div>
+<div class="footer">
<p class="luci"><a href="<%=controller%>/about">Powered by <%= luci.__appname__ .. " (v" .. luci.__version__ .. ")" %></a></p>
<p class="luci"><a href="<%=controller%>/about">Powered by <%= luci.__appname__ .. " (v" .. luci.__version__ .. ")" %></a></p>
+<% if xtime then %>
+<p class="exectime">Script execution time: <%=xtime%></p>
+<% end %>
+</div>
+
</body>
</html>
</body>
</html>