gluon-luci-theme: show gluon release
This commit is contained in:
parent
0b3db87d6f
commit
c31df31553
@ -16,8 +16,10 @@ $Id$
|
|||||||
local sys = require "luci.sys"
|
local sys = require "luci.sys"
|
||||||
local http = require "luci.http"
|
local http = require "luci.http"
|
||||||
local disp = require "luci.dispatcher"
|
local disp = require "luci.dispatcher"
|
||||||
|
local fs = require "nixio.fs"
|
||||||
|
|
||||||
local hostname = sys.hostname()
|
local hostname = sys.hostname()
|
||||||
|
local release = fs.readfile("/lib/gluon/release")
|
||||||
local load1, load5, load15 = sys.loadavg()
|
local load1, load5, load15 = sys.loadavg()
|
||||||
|
|
||||||
local request = disp.context.path
|
local request = disp.context.path
|
||||||
@ -116,6 +118,9 @@ $Id$
|
|||||||
<div id="menubar">
|
<div id="menubar">
|
||||||
<div class="hostinfo">
|
<div class="hostinfo">
|
||||||
<%=hostname%>
|
<%=hostname%>
|
||||||
|
<% if release then %>
|
||||||
|
/ <%=release%>
|
||||||
|
<% end %>
|
||||||
<span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">
|
<span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">
|
||||||
| <%:Auto Refresh%>:
|
| <%:Auto Refresh%>:
|
||||||
<span id="xhr_poll_status_on"><%:on%></span>
|
<span id="xhr_poll_status_on"><%:on%></span>
|
||||||
|
Loading…
Reference in New Issue
Block a user