projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
30b216f
)
themes: properly format load values in theme headers
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 22 Jun 2009 10:20:06 +0000
(10:20 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 22 Jun 2009 10:20:06 +0000
(10:20 +0000)
themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm
patch
|
blob
|
history
themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm
patch
|
blob
|
history
themes/openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/header.htm
patch
|
blob
|
history
themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
patch
|
blob
|
history
diff --git
a/themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm
b/themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm
index
657d5e8
..
8904837
100644
(file)
--- a/
themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm
+++ b/
themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm
@@
-62,7
+62,7
@@
require("luci.http").prepare_content("application/xhtml+xml")
<h1><%=luci.version.distname%></h1>
<p>
<%=luci.version.distversion%><br />
<h1><%=luci.version.distname%></h1>
<p>
<%=luci.version.distversion%><br />
-<%:load%>: <%=
load1%> <%=load5%> <%=
load15%><br />
+<%:load%>: <%=
"%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" %
load15%><br />
<%:hostname%>: <%=hostname%>
</p>
</div>
<%:hostname%>: <%=hostname%>
</p>
</div>
diff --git
a/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm
b/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm
index
689353c
..
6883130
100644
(file)
--- a/
themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm
+++ b/
themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm
@@
-62,7
+62,7
@@
require("luci.http").prepare_content("application/xhtml+xml")
<h1><%=luci.version.distname%></h1>
<p>
: <%=luci.version.distversion%> |
<h1><%=luci.version.distname%></h1>
<p>
: <%=luci.version.distversion%> |
-<%:load%>: <%=
load1%> <%=load5%> <%=
load15%> |
+<%:load%>: <%=
"%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" %
load15%> |
<%:hostname%>: <%=hostname%>
</p>
</div>
<%:hostname%>: <%=hostname%>
</p>
</div>
diff --git
a/themes/openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/header.htm
b/themes/openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/header.htm
index
fe18214
..
3187318
100644
(file)
--- a/
themes/openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/header.htm
+++ b/
themes/openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/header.htm
@@
-64,7
+64,7
@@
require("luci.http").prepare_content("application/xhtml+xml")
<h1><%=luci.version.distname%></h1>
<p>
<%=luci.version.distversion%><br />
<h1><%=luci.version.distname%></h1>
<p>
<%=luci.version.distversion%><br />
-<%:load%>: <%=
load1%> <%=load5%> <%=
load15%><br />
+<%:load%>: <%=
"%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" %
load15%><br />
<%:hostname%>: <%=hostname%>
</p>
</div>
<%:hostname%>: <%=hostname%>
</p>
</div>
diff --git
a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
index
131e767
..
80aad13
100644
(file)
--- a/
themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
+++ b/
themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
@@
-62,7
+62,7
@@
require("luci.http").prepare_content("application/xhtml+xml")
<h1><%=luci.version.distname%></h1>
<p>
<%=luci.version.distversion%><br />
<h1><%=luci.version.distname%></h1>
<p>
<%=luci.version.distversion%><br />
-<%:load%>: <%=
load1%> <%=load5%> <%=
load15%><br />
+<%:load%>: <%=
"%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" %
load15%><br />
<%:hostname%>: <%=hostname%>
</p>
</div>
<%:hostname%>: <%=hostname%>
</p>
</div>