Revision 7e45ddef ui/templates/list.html

b/ui/templates/list.html
174 174
    new ones to the list
175 175
    */
176 176
	tableData = vmTable.fnGetData();
177
    $.each(data.servers, function(i,server){        
177
    $.each(data.servers.values, function(i,server){        
178 178
        current = -1;
179 179
        // check server status to select the appropriate OS icon
180 180
        osTag = image_tags[server.imageRef]
......
211 211
					imgStr = "<img class=list-logo src=" + imgSrc + " title=" + osTag + " height=16 width=16 />";
212 212
					tableData[current][1] = "<span class=imagetag>" + osTag + "</span>" + imgStr;
213 213
					tableData[current][2] = "<a class=name><span class=name>" + server.name + "</span></a>";
214
					tableData[current][3] = "<a class=ip><span class=public>"+ server.addresses.public.ip.addr + "</span></a>";
214
					tableData[current][3] = "<a class=ip><span class=public>"+ server.addresses.values[0].values[0].addr + "</span></a>";
215 215
					//tableData[current][4] = "group"; //TODO
216 216
					tableData[current][5] = "<span class=status>" + STATUS_MESSAGES[server.status] + "</span>";
217 217
					vmTable.fnUpdate(tableData[current],current);
......
232 232
                "<span class=imagetag>" + osTag + "</span><img class=list-logo src=static/os_logos/" + osIcon +
233 233
                    " title=" + osTag + " height=16 width=16>",
234 234
                "<a class=name><span class=name>" + server.name + "</span></a>",
235
                "<a class=ip><span class=public>"+ server.addresses.public.ip.addr + "</span></a>",
235
                "<a class=ip><span class=public>"+ server.addresses.values[0].values[0].addr + "</span></a>",
236 236
                "group",
237 237
                "<span class=status>" + STATUS_MESSAGES[server.status] + "</span>"
238 238
            ]);

Also available in: Unified diff