mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
Sort records label-wise reverse
Account for the hierarchical nature of DNS by sorting records by their name label-wise from right to left. Also justify the record names to the right, so they visually line up on label borders.
This commit is contained in:
parent
077bbb813c
commit
934e4a7af3
@ -202,6 +202,17 @@
|
||||
{% else %}
|
||||
targets: [5]
|
||||
{% endif %}
|
||||
},
|
||||
{
|
||||
targets: [0],
|
||||
className: "text-right",
|
||||
data: {
|
||||
'_': "0",
|
||||
'sort': function (row, _type, _set, _meta) {
|
||||
const data = row[0] || '';
|
||||
return data.split('.').reverse().join('.');
|
||||
},
|
||||
},
|
||||
}
|
||||
],
|
||||
{% if domain.type != 'Slave' %}
|
||||
|
Loading…
Reference in New Issue
Block a user