Revision 93ddb02b ui/templates/machines_icon.html
b/ui/templates/machines_icon.html | ||
---|---|---|
638 | 638 |
else if ( server.status != 'DELETED') { |
639 | 639 |
// clone the proper template and put basic values in |
640 | 640 |
var machine = $("#machinesview-icon.standard #machine-container-template").clone().attr("id", server.id).fadeIn("slow"); |
641 |
|
|
641 | 642 |
machine.find(".scrollable").scrollable({vertical: true}); |
642 | 643 |
machine.find("div.name span.name").text(server.name.substring(0,50)); |
643 | 644 |
machine.find("span.imagetag").text(server_image); |
... | ... | |
657 | 658 |
machine.find('.state').removeClass().addClass('state error-state'); |
658 | 659 |
} |
659 | 660 |
} |
661 |
|
|
660 | 662 |
//show spinner if server is still building or rebooting |
661 | 663 |
if (server.status == 'BUILD') { |
662 | 664 |
machine.find('.spinner').show(); |
663 | 665 |
machine.find('.state').removeClass().addClass('state build-state'); |
666 |
machine.addClass('vm-building'); |
|
667 |
} else { |
|
668 |
machine.removeClass('vm-building'); |
|
664 | 669 |
} |
670 |
|
|
665 | 671 |
if (server.status == 'REBOOT') { |
666 | 672 |
machine.find('.spinner').show(); |
667 | 673 |
machine.find('.state').removeClass().addClass('state rebooting-state'); |
Also available in: Unified diff