Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
FFS Gluon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
firmware
FFS Gluon
Commits
caf2dd03
Commit
caf2dd03
authored
Nov 24, 2019
by
lemoer
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gluon-status-page: add gateway_nexthop to status page statistics
parent
b4101e54
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
0 deletions
+21
-0
package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html
...us-page/files/lib/gluon/status-page/view/status-page.html
+1
-0
package/gluon-status-page/i18n/de.po
package/gluon-status-page/i18n/de.po
+3
-0
package/gluon-status-page/i18n/gluon-status-page.pot
package/gluon-status-page/i18n/gluon-status-page.pot
+3
-0
package/gluon-status-page/javascript/status-page.js
package/gluon-status-page/javascript/status-page.js
+14
-0
No files found.
package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html
View file @
caf2dd03
...
...
@@ -136,6 +136,7 @@
<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
')
%
></td></tr>
<tr><th><
%
:Gateway
Nexthop
%
></th><td><
%=
statistics
('
gateway_nexthop
',
'
neighbour
')
%
></td></tr>
<tr><th><
%
:Clients
%
></th><td><
%=
statistics
('
clients
/
total
')
%
></td></tr>
</table>
...
...
package/gluon-status-page/i18n/de.po
View file @
caf2dd03
...
...
@@ -55,6 +55,9 @@ msgstr "Weitergeleitet"
msgid "Gateway"
msgstr "Gateway"
msgid "Gateway Nexthop"
msgstr "Gateway Nexthop"
msgid "IP address"
msgstr "IP-Adresse"
...
...
package/gluon-status-page/i18n/gluon-status-page.pot
View file @
caf2dd03
...
...
@@ -46,6 +46,9 @@ msgstr ""
msgid "Gateway"
msgstr ""
msgid "Gateway Nexthop"
msgstr ""
msgid "IP address"
msgstr ""
...
...
package/gluon-status-page/javascript/status-page.js
View file @
caf2dd03
...
...
@@ -112,6 +112,17 @@
'
bytes
'
:
function
(
bytes
)
{
return
prettyBytes
(
bytes
);
},
'
neighbour
'
:
function
(
addr
)
{
for
(
var
i
in
interfaces
)
{
var
iface
=
interfaces
[
i
];
var
neigh
=
iface
.
get_neigh
(
addr
);
if
(
!
neigh
)
continue
;
return
neigh
.
get_hostname
()
+
'
(
'
+
i
+
'
)
'
;
}
return
addr
+
'
(unknown iface)
'
;
}
}
...
...
@@ -582,6 +593,9 @@
}
return
{
'
get_hostname
'
:
function
()
{
return
hostname
.
textContent
;
},
'
update_nodeinfo
'
:
function
(
nodeinfo
)
{
var
addr
=
choose_address
(
nodeinfo
.
network
.
addresses
);
if
(
addr
)
{
...
...
Nico
@nrb
mentioned in commit
580b7357
·
Feb 17, 2020
mentioned in commit
580b7357
mentioned in commit 580b7357d5fe53e01c8845aec348fbae255b5e7f
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment