Skip to content

Commit

Permalink
make interface more clear - top IP list (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
matyaskopp committed Dec 2, 2021
1 parent d5599c5 commit b6ccd7a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
15 changes: 14 additions & 1 deletion app/routes/adminRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,20 @@ router.get('/admin/ips', function (req, res, next) {
res.render('ips', {
user: user,
ips_active: true,
measures: ["units", "requests", "body_bytes_sent"],
measures: [
{
val: "units",
text: "Input NFC lenght (infclen)"
},
{
val: "requests",
text: "Number of requests"
},
{
val: "body_bytes_sent",
text: "Output 'body bytes sent' (includes overhead)"
}
],
levels: ["month", "day"],
val: val,
table_params: table_params.join('&')
Expand Down
18 changes: 9 additions & 9 deletions app/views/ips.pug
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@ block content
form(method="get")
.row
.input-field.col.s12
i.material-icons.prefix compare
.select-wrapper
select.browser-default#measure(name="measure")
each m in measures
option(value=m.val, selected= (m.val==val.measure) ? 'selected' : false)= m.text
label(for="measure") Measure
.row
.input-field.col.s6
i.material-icons.prefix format_size
.select-wrapper
select.browser-default#level(name="level")
each l in levels
option(value=l, selected= (l==val.level) ? 'selected' : false)= l
label(for="level") Period level size (table column)
.row
.input-field.col.s6
i.material-icons.prefix compare
.select-wrapper
select.browser-default#measure(name="measure")
each m in measures
option(value=m, selected= (m==val.measure) ? 'selected' : false)= m
label(for="measure") Measure
.input-field.col.s6
i.material-icons.prefix chevron_right
input#min_exist.validate(name="min_exist" type="number" step="1" min="0" required="" aria-required="true" value=val.min_exist )
label(for="min_exist") minimum required value
label(for="min_exist") minimum required value in any period
span.helper-text(data-error="Number Required")
.row
.input-field.col.s6
Expand Down

0 comments on commit b6ccd7a

Please sign in to comment.