diff --git a/hsman/TODO.md b/hsman/TODO.md index 4fad345..7c614fa 100644 --- a/hsman/TODO.md +++ b/hsman/TODO.md @@ -1,5 +1,2 @@ -- improve APP_PREFIX -- edit bootstrap CSS to fix fonts and colors - try to use a datatable for routes, with grouping -- more tooltips, for hosts, showing IP addresses (?) - move to github and set up pipeline diff --git a/hsman/app/filters.py b/hsman/app/filters.py index 662a932..ac8b1de 100644 --- a/hsman/app/filters.py +++ b/hsman/app/filters.py @@ -60,9 +60,9 @@ def fmt_datetime(datetime): def fancyBool(bool_): if bool_: - return '' + return '' else: - return '' + return '' def fancyOnline(online): diff --git a/hsman/app/static/main.css b/hsman/app/static/main.css index b988ac1..3b2ea4e 100644 --- a/hsman/app/static/main.css +++ b/hsman/app/static/main.css @@ -80,6 +80,14 @@ div.data:hover{ background-color: #444; } +.fancyTrue { + color: #10932f +} + +.fancyFalse { + color: #9b0f0f +} + /* primary route */ a.route.primary { font-weight: bold; diff --git a/hsman/app/templates/nodes.html b/hsman/app/templates/nodes.html index aa03659..c66996b 100644 --- a/hsman/app/templates/nodes.html +++ b/hsman/app/templates/nodes.html @@ -11,6 +11,7 @@ user expire last event + addresses online   @@ -20,7 +21,9 @@ - {{node.givenName}} + + {{node.givenName}} + @@ -40,6 +43,9 @@ {{node.lastSeen | htime_dt }} + + {{ node.ipAddresses | join(', ') }} + {{node.online | fancyBool | safe}} @@ -79,6 +85,13 @@ aoColumnDefs: [ { 'bSortable': false, 'aTargets': [ -1 ] } ], + columnDefs: [ + { + target: 4, + visible: false, + searchable: true + } + ] }); })