Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Commits
c31df315
Commit
c31df315
authored
11 years ago
by
Nils Schneider
Browse files
Options
Downloads
Patches
Plain Diff
gluon-luci-theme: show gluon release
parent
0b3db87d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm
+5
-0
5 additions, 0 deletions
...theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm
with
5 additions
and
0 deletions
package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm
+
5
−
0
View file @
c31df315
...
@@ -16,8 +16,10 @@ $Id$
...
@@ -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$
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment