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