diff --git a/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm b/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm index c0f10b7547fda6eecbf05a1d3b8ca7d32550caf6..730647bc2573f565b35eac62677e1a6e38f00535 100644 --- a/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm +++ b/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm @@ -16,8 +16,10 @@ $Id$ local sys = require "luci.sys" local http = require "luci.http" local disp = require "luci.dispatcher" + local fs = require "nixio.fs" local hostname = sys.hostname() + local release = fs.readfile("/lib/gluon/release") local load1, load5, load15 = sys.loadavg() local request = disp.context.path @@ -116,6 +118,9 @@ $Id$ <div id="menubar"> <div class="hostinfo"> <%=hostname%> + <% if release then %> + / <%=release%> + <% end %> <span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()"> | <%:Auto Refresh%>: <span id="xhr_poll_status_on"><%:on%></span>