this adds the summary as first line,
and the long warning message as monospaced text (like on the console)

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 www/manager6/ceph/Status.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/www/manager6/ceph/Status.js b/www/manager6/ceph/Status.js
index 60260ed2..cda97867 100644
--- a/www/manager6/ceph/Status.js
+++ b/www/manager6/ceph/Status.js
@@ -90,7 +90,10 @@ Ext.define('PVE.node.CephStatus', {
                                                scrollable: true,
                                                padding: '10',
                                                xtype: 'box',
-                                               html: record.data.detail
+                                               html: [
+                                                   '<span>' + 
Ext.htmlEncode(record.data.summary) + '</span>',
+                                                   '<pre>' + 
Ext.htmlEncode(record.data.detail) + '</pre>'
+                                               ]
                                            }]
                                        });
                                        win.show();
-- 
2.11.0


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to