Revision 2b7ae4be ui/templates/list.html

b/ui/templates/list.html
255 255
                osIcon = "static/os_logos/" + osTag + ".png";
256 256
            }
257 257
            // find flavor parameters
258
            flavorData = get_flavor(server.flavorRef);
259
            flavorLabel = '';
260
            if (flavorData['cpu'] == '1') {
258
            var current_flavor = '';
259
            for (i=0; i<flavors.length; i++) {
260
                if (flavors[i]['id'] == server.flavorRef) {
261
                    current_flavor = flavors[i];
262
                }
263
            } 
264
            var flavor_label = '';
265
            if (current_flavor['cpu'] == '1') {
261 266
                flavorLabel = '1 CPU, ';
262 267
            } else {
263
                flavorLabel = flavorData['cpu'] + ' CPUs, ';
268
                flavorLabel = current_flavor['cpu'] + ' CPUs, ';
264 269
            }
265
            flavorLabel = flavorLabel + flavorData['ram'] + 'MB, ' + flavorData['disk'] + 'GB'; 
270
            flavorLabel = flavorLabel + current_flavor['ram'] + 'MB, ' + current_flavor['disk'] + 'GB'; 
266 271

  
267 272
            // add new row to the table
268 273
            vmTable.fnAddData([

Also available in: Unified diff