themes: properly format load values in theme headers
[project/luci.git] / themes / openwrt.org / luasrc / view / themes / openwrt.org / header.htm
index e658bfc67437be82243d461d495974ee0914390c..80aad132c283873e66a7ac0edd2f563671e98dad 100644 (file)
@@ -59,10 +59,10 @@ require("luci.http").prepare_content("application/xhtml+xml")
 </p>
 
 <div id="header">
-<h1><%=luci.config.brand.firmware%></h1>
+<h1><%=luci.version.distname%></h1>
 <p>
-<%=luci.config.brand.distro%><br />
-<%:load%>: <%=load1%> <%=load5%> <%=load15%><br />
+<%=luci.version.distversion%><br />
+<%:load%>: <%="%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" % load15%><br />
 <%:hostname%>: <%=hostname%>
 </p>
 </div>