Commit graph

12 commits

Author SHA1 Message Date
Jo-Philipp Wich
4f4ad9bff5 luci-app-nlbwmon: fix row sorting
Add raw cell values to support proper numerical row sorting.

Fixes: #6366
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-04-29 23:42:55 +02:00
Jo-Philipp Wich
7c7ac8bf0d luci-app-nlbwmon: validate date input
Fixes: #6188
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-01-13 21:26:52 +01:00
Anton Kikin
fb52e86b54 luci-app-nlbwmon: Add translation context for Download/Upload terms
Added a translation context for the terms 'Download' and 'Upload'
used in this application. The reason is that these terms are
translated differently in Russian depending on the context.

If the terms are used in the sense of an action (download file
or upload file) then the translations should be as follows:
- Download = скачать
- Upload   = загрузить

But if they are used in the context of a traffic counter (like
in this application) the correct translations are:
- Download = скачано
- Upload   = загружено

A translation context has been added to all affected PO files
to avoid breaking existing translations. The Russian translation
in PO file is fixed to comply with the used context.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2021-07-02 04:45:23 +03:00
Florian Eckert
a7be13ff05 luci-app-nlbwmon: showe force reload button even if data are available
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-06-17 15:06:12 +02:00
Florian Eckert
04c4499be7 luci-app-nlbwmon: adjused the display export page
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-06-17 12:50:40 +02:00
Florian Eckert
d6443a6293 luci-app-nlbwmon: change force reload html element to button
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-06-17 12:26:24 +02:00
Florian Eckert
6f6ec9f56c luci-app-nlbwmon: add missing cbi-button class for database backup
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-06-17 12:24:43 +02:00
Florian Eckert
7a36518329 luci-app-nlbwmon: fix url
When moving this application to the service section, the links were
forgotten to be changed.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-06-17 08:14:47 +02:00
Jo-Philipp Wich
77d6b28935 luci-app-nlbwmon: fix traffic numbers display in pie chart tooltips
The pie chart tooltips used base 1000 to format traffic numbers while table
cell values were formatted using base 1024. Use base 1024 for both to report
the same values.

Fixes: #4759
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-01 10:27:30 +01:00
Jo-Philipp Wich
03c77dafe3 treewide: transition div tables to actual table markup
Modern browsers allow decomposing table markup equally well as nested div
constructs, therefor migrate our <div> table markup to actual <table> tags
but keep the old table/tr/th/td CSS classes for now to allow for a smooth
theme transition.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-11-27 21:36:40 +01:00
Jo-Philipp Wich
cd69c118ad luci-app-nlbwmon: gracefully handle failing oui db download
Fixes: #3980
Fixes: fdce990b9 ("luci-app-nlbwmon: convert to client side JS")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-05-02 23:55:06 +02:00
Jo-Philipp Wich
fdce990b90 luci-app-nlbwmon: convert to client side JS
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-20 19:05:27 +02:00