--- misc/xenconsole/index.php 2012/12/10 12:20:57 1896 +++ misc/xenconsole/index.php 2013/01/29 13:39:39 1920 @@ -55,7 +55,8 @@ $('.console').click( function() { var session = $(this).data('session'); var conurl = $(this).data('conurl'); - console(conurl,session); + var name = $(this).data('name'); + console(conurl,session,name); }); $('#logo').click( function() { @@ -97,6 +98,7 @@ var conurl = $(this).find('conurl').text(); var session = $(this).find('session').text(); var os = $(this).find('os').text(); + var guestversion = $(this).find('guestversion').text(); var cpuavg = $(this).find('cpuavg').text(); var curmem = $(this).find('curmem').text(); var maxmem = $(this).find('maxmem').text(); @@ -110,6 +112,10 @@ var vm = $(id); + if (guestversion != '') { + os += ' Guest Tools: ' + guestversion; + } + if (state == "Running") { vm.find('.state').css("background-image", "url('gfx/vps_topgreen.png')"); vm.find('.network').show(); @@ -117,6 +123,7 @@ vm.find('.console').show(); vm.find('.console').data('conurl', conurl); vm.find('.console').data('session', session); + vm.find('.console').data('name', name); vm.find('.actionstop').show(); vm.find('.actionstart').hide(); vm.find('.os').text(' - ' + os); @@ -135,6 +142,8 @@ } else { vm.find('.state').css("background-image", "url('gfx/vps_topyellow.png')"); } + vm.find('.os').text(''); + vm.find('.network').hide(); vm.find('.console').hide(); vm.find('.actionstop').hide(); @@ -167,7 +176,7 @@ }); } -function console(url, session) { +function console(url, session, name) { if (url == '') return; @@ -175,7 +184,7 @@ if (key == "" || key == null) { return; } - var url = "console.php?url=" + url + "&session=" + session + "&key=" + key; + var url = "console.php?url=" + url + "&session=" + session + "&key=" + key + "&name=" + name; //window.location = url; //$('#mainwindow').load(url); @@ -228,18 +237,20 @@
+ +
12%
0/4 MB
- + @@ -252,6 +263,7 @@ } $name = $vm["name_label"]; + $description = $vm["name_description"]; $uuid = $vm["uuid"]; $state = $vm["power_state"] ; $memory = $vm['memory_target']; @@ -277,8 +289,8 @@ - - + --> -
  + +