Colours
This commit is contained in:
parent
ffdded6537
commit
3e2dab43f0
|
@ -1,5 +1,2 @@
|
||||||
- improve APP_PREFIX
|
|
||||||
- edit bootstrap CSS to fix fonts and colors
|
|
||||||
- try to use a datatable for routes, with grouping
|
- try to use a datatable for routes, with grouping
|
||||||
- more tooltips, for hosts, showing IP addresses (?)
|
|
||||||
- move to github and set up pipeline
|
- move to github and set up pipeline
|
||||||
|
|
|
@ -60,9 +60,9 @@ def fmt_datetime(datetime):
|
||||||
|
|
||||||
def fancyBool(bool_):
|
def fancyBool(bool_):
|
||||||
if bool_:
|
if bool_:
|
||||||
return '<span style="color: green">✔</span>'
|
return '<span class="fancyTrue">✔</span>'
|
||||||
else:
|
else:
|
||||||
return '<span style="color: red">✘</span>'
|
return '<span class="fancyFalse">✘</span>'
|
||||||
|
|
||||||
|
|
||||||
def fancyOnline(online):
|
def fancyOnline(online):
|
||||||
|
|
|
@ -80,6 +80,14 @@ div.data:hover{
|
||||||
background-color: #444;
|
background-color: #444;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fancyTrue {
|
||||||
|
color: #10932f
|
||||||
|
}
|
||||||
|
|
||||||
|
.fancyFalse {
|
||||||
|
color: #9b0f0f
|
||||||
|
}
|
||||||
|
|
||||||
/* primary route */
|
/* primary route */
|
||||||
a.route.primary {
|
a.route.primary {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<th>user</th>
|
<th>user</th>
|
||||||
<th>expire</th>
|
<th>expire</th>
|
||||||
<th>last event</th>
|
<th>last event</th>
|
||||||
|
<th>addresses</th>
|
||||||
<th>online</th>
|
<th>online</th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -20,7 +21,9 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a class="plain" href="{{ url_for('main.node', nodeId=node.id)}}">
|
<a class="plain" href="{{ url_for('main.node', nodeId=node.id)}}">
|
||||||
|
<span data-toggle="tooltip" data-placement="right" title="{{ node.ipAddresses | join('\n') }}">
|
||||||
{{node.givenName}}
|
{{node.givenName}}
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -40,6 +43,9 @@
|
||||||
{{node.lastSeen | htime_dt }}
|
{{node.lastSeen | htime_dt }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
{{ node.ipAddresses | join(', ') }}
|
||||||
|
</td>
|
||||||
<td data-filter="{{ node.online | fancyOnline }}">
|
<td data-filter="{{ node.online | fancyOnline }}">
|
||||||
{{node.online | fancyBool | safe}}
|
{{node.online | fancyBool | safe}}
|
||||||
</td>
|
</td>
|
||||||
|
@ -79,6 +85,13 @@
|
||||||
aoColumnDefs: [
|
aoColumnDefs: [
|
||||||
{ 'bSortable': false, 'aTargets': [ -1 ] }
|
{ 'bSortable': false, 'aTargets': [ -1 ] }
|
||||||
],
|
],
|
||||||
|
columnDefs: [
|
||||||
|
{
|
||||||
|
target: 4,
|
||||||
|
visible: false,
|
||||||
|
searchable: true
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue