mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
feature #1664: Fix VM log tab and add error css
This commit is contained in:
1 parent
20de0b3d94
commit
d029e08d40
4 files changed
+12
-3
No files matched your search
@@ -6769,3 +6769,8 @@ a.footer.button {
|
||||
.dashboard-panel {
|
||||
height: 517px;
|
||||
}
|
||||
|
||||
/* line 769, ../sass/app.scss */
|
||||
.vm_log_error {
|
||||
color: #c0392b;
|
||||
}
|
||||
@@ -811,7 +811,7 @@ function updateHostInfo(request,host){
|
||||
var info_tab = {
|
||||
title : tr("Information"),
|
||||
content :
|
||||
'<div class="row">\
|
||||
'<div class="">\
|
||||
<div class="six columns">\
|
||||
<table id="info_host_table" class="twelve datatable extended_table">\
|
||||
<thead>\
|
||||
|
||||
@@ -374,10 +374,10 @@ var vm_actions = {
|
||||
if (line.match(/\[E\]/)){
|
||||
line = '<span class="vm_log_error">'+line+'</span>';
|
||||
}
|
||||
colored_log += line + "\n";
|
||||
colored_log += line + "<br>";
|
||||
}
|
||||
|
||||
$('#vm_log_tab').html('<pre>'+colored_log+'</pre>')
|
||||
$('#vm_log_tabTab').html('<div class=""><div class="twelve columns">'+colored_log+'</div></div>')
|
||||
},
|
||||
error: function(request,error_json){
|
||||
$("#vm_log pre").html('');
|
||||
|
||||
@@ -765,3 +765,7 @@ a.footer.button {
|
||||
.dashboard-panel {
|
||||
height: 517px;
|
||||
}
|
||||
|
||||
.vm_log_error {
|
||||
color: $alertColor;
|
||||
}
|
||||
Reference in new issue
Block a user