Skip to content
Snippets Groups Projects
Commit e91f20e3 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Improve Ansible groups list table view

- Restrict the width of the vars column
- Make the children and hosts a list of comma separated words with space
  to allow line break

JIRA INFRA-763
parent 3edc416c
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,8 @@ $(document).ready(function() { ...@@ -41,7 +41,8 @@ $(document).ready(function() {
callback(json); callback(json);
}); });
}, },
"paging": false, "paging": true,
"pagingType": "full_numbers",
"columns": [ "columns": [
{ data: 'name', { data: 'name',
render: function(data, type, row) { render: function(data, type, row) {
...@@ -58,12 +59,20 @@ $(document).ready(function() { ...@@ -58,12 +59,20 @@ $(document).ready(function() {
if ( data === null ) { if ( data === null ) {
return ""; return "";
} }
return '<pre style="white-space: pre-wrap">' + JSON.stringify(data, null, 2) + '</pre>'; return '<pre style="max-width:300px;">' + JSON.stringify(data, null, 2) + '</pre>';
} }
}, },
{ data: 'type' }, { data: 'type' },
{ data: 'children' }, { data: 'children',
{ data: 'hosts' } render: function(data, type, row) {
return data.join(", ");
}
},
{ data: 'hosts',
render: function(data, type, row) {
return data.join(", ");
}
}
] ]
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment