* Added ffluci.util.instanceof function
[project/luci.git] / src / ffluci / view / header.htm
index 2c0836b..cef95b3 100644 (file)
@@ -1,4 +1,6 @@
 <%
+require("ffluci.sys")
+local load1, load5, load15 = ffluci.sys.loadavg()
 local req  = require("ffluci.dispatcher").request
 local menu = require("ffluci.menu").get()[req.category]
 require("ffluci.i18n").loadc("default")
@@ -9,6 +11,7 @@ require("ffluci.http").htmlheader()
 <head>
 <link rel="stylesheet" type="text/css" href="<%=media%>/cascade.css" />
 <title>FFLuCI</title>
+<% if addheaders then write(addheaders) end %>
 </head>
 <body>
 <div id="header">
@@ -16,8 +19,8 @@ require("ffluci.http").htmlheader()
        <div class="whitetext smalltext right">
        OpenWRT Kamikaze<br />
        Freifunk Firmware 2.0-dev<br />
-       Load average: 1.00 2.00 3.00<br />
-       1.2.3.4 - host1
+       <%:load Last%>: <%=load1%> <%=load5%> <%=load15%><br />
+       <%:hostname Hostname%>: <%=ffluci.sys.hostname()%> 
        </div>
        <div>
                <span class="headertitle">Freifunk Kamikaze</span><br />