1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

Sunstone fixes related to VMs

*Fix typo causing Chrome not to show VM log.
*Increase size of info table key_td column
*Disable deploy,migrate,live-migrate for users not belonging to gid=0, as hosts_select is not available.
This commit is contained in:
Hector Sanjuan 2011-07-13 01:16:18 +02:00 committed by Ruben S. Montero
parent 8e08923e73
commit 03e442f678
2 changed files with 10 additions and 6 deletions

View File

@ -362,7 +362,7 @@ tr.even:hover{
display: inline-block;
width:43%;
vertical-align:top;
overflow:hidden;
overflow:auto;
}
.info_table > thead th,h3 {
@ -383,9 +383,12 @@ tr.even:hover{
padding-right: 8px;
}
/*.info_table > tbody, .info_table > thead, info_table > tbody > tr {
width: 100%;
}*/
.info_table td.key_td{
width: 100%;
min-width: 150px;
text-align:left;
font-weight:bold;
}
@ -398,6 +401,7 @@ tr.even:hover{
.info_table td.value_td{
text-align:left;
width:100%;
}
#dialog > div > div {

View File

@ -333,7 +333,7 @@ var vm_actions = {
colored_log += line + "\n";
}
$('#vm_log_tab#').html('<pre>'+colored_log+'</pre>')
$('#vm_log_tab').html('<pre>'+colored_log+'</pre>')
},
error: function(request,error_json){
$("#vm_log pre").html('');
@ -450,7 +450,7 @@ var vm_buttons = {
if (hosts_select){return hosts_select}
else {return ""}
},
condition: True
condition: function() { return gid == 0; }
},
"VM.migrate" : {
type: "confirm_with_select",
@ -460,7 +460,7 @@ var vm_buttons = {
if (hosts_select){return hosts_select}
else {return ""}
},
condition: True
condition: function() { return gid == 0; }
},
"VM.livemigrate" : {
@ -471,7 +471,7 @@ var vm_buttons = {
if (hosts_select){return hosts_select}
else {return ""}
},
condition: True
condition: function() { return gid == 0; }
},
"VM.hold" : {
type: "confirm",