commit 2e81680dda34019176c026ad06dfb771312df002 Author: Kostas Papadimitriou Date: Fri Jul 22 14:21:37 2011 +0300 Handle long machines names on single and list view, Refs #857 diff --git a/ui/templates/machines_single.html b/ui/templates/machines_single.html index c04a9a6..187c0ac 100644 --- a/ui/templates/machines_single.html +++ b/ui/templates/machines_single.html @@ -558,7 +558,7 @@ function update_machines_view(data){ //create and select the new one var machine = $("#machinesview-single.single #machine-container-template").clone().attr("id", server.id); machine.find(".scrollable").scrollable({vertical: true}); - machine.find(".machine-details div.name").text(server.name.substring(0,30)); + machine.find(".machine-details div.name").text(fix_server_name(server.name)); set_machine_os_image(machine, "single", "on", server_image); machine.find("span.imagetag").text(server_image); machine.find(".column1 .state-label").text(STATUSES[server.status]);