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
55eff45f
Commit
55eff45f
authored
5 years ago
by
lemoer
Browse files
Options
Downloads
Patches
Plain Diff
gluon-status-page: prettify nextnode when node is offline
parent
07ebac6a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html
+1
-1
1 addition, 1 deletion
...us-page/files/lib/gluon/status-page/view/status-page.html
package/gluon-status-page/javascript/status-page.js
+5
-2
5 additions, 2 deletions
package/gluon-status-page/javascript/status-page.js
with
6 additions
and
3 deletions
package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html
+
1
−
1
View file @
55eff45f
...
...
@@ -135,7 +135,7 @@
<tr><th><
%
:Load
average
%
></th><td><
%=
statistics
('
loadavg
',
'
decimal
')
%
></td></tr>
<tr><th><
%
:RAM
%
></th><td><
%=
statistics
('
memory
',
'
memory
')
%
></td></tr>
<tr><th><
%
:Filesystem
%
></th><td><
%=
statistics
('
rootfs_usage
',
'
percent
')
%
></td></tr>
<tr><th><
%
:Gateway
%
></th><td><
%=
statistics
('
gateway
')
%
><br
/>
via
<
%=
statistics
('
gateway_nexthop
',
'
neighbour
')
%
></td></tr>
<tr><th><
%
:Gateway
%
></th><td><
%=
statistics
('
gateway
')
%
><br
/><
%=
statistics
('
gateway_nexthop
',
'
neighbour
')
%
></td></tr>
<tr><th><
%
:Clients
%
></th><td><
%=
statistics
('
clients
/
total
')
%
></td></tr>
</table>
...
...
This diff is collapsed.
Click to expand it.
package/gluon-status-page/javascript/status-page.js
+
5
−
2
View file @
55eff45f
...
...
@@ -113,15 +113,18 @@
return
prettyBytes
(
bytes
);
},
'
neighbour
'
:
function
(
addr
)
{
if
(
!
addr
)
return
''
;
for
(
var
i
in
interfaces
)
{
var
iface
=
interfaces
[
i
];
var
neigh
=
iface
.
get_neigh
(
addr
);
if
(
!
neigh
)
continue
;
return
neigh
.
get_hostname
()
+
'
(
'
+
i
+
'
)
'
;
return
'
via
'
+
neigh
.
get_hostname
()
+
'
(
'
+
i
+
'
)
'
;
}
return
addr
+
'
(unknown iface)
'
;
return
'
via
'
+
addr
+
'
(unknown iface)
'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Nico
@nrb
mentioned in commit
580b7357
·
5 years ago
mentioned in commit
580b7357
mentioned in commit 580b7357d5fe53e01c8845aec348fbae255b5e7f
Toggle commit list
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