mirror of https://github.com/apache/cloudstack.git
bug 12557: Instances NICs tab
-Show whether NIC is default -Add title to each NIC -Cleanup styling of NICs tab status 12557: resolved fixed
This commit is contained in:
parent
9ba4691737
commit
0358ef8166
|
|
@ -1268,6 +1268,11 @@ div.list-view td.state.off span {
|
|||
border-top: none;
|
||||
}
|
||||
|
||||
.details.group-multiple table.header {
|
||||
width: 94%;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
|
||||
.details.group-multiple table tbody {
|
||||
border-top: 1px solid #F2F0F0;
|
||||
}
|
||||
|
|
@ -1324,7 +1329,7 @@ div.list-view td.state.off span {
|
|||
}
|
||||
|
||||
div.group-multiple div.detail-group table {
|
||||
margin-top: -12px;
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
div.group-multiple div.detail-group table.header {
|
||||
|
|
|
|||
|
|
@ -1623,15 +1623,30 @@
|
|||
multiple: true,
|
||||
fields: [
|
||||
{
|
||||
id: { label: 'ID' },
|
||||
name: { label: 'Name', header: true },
|
||||
ipaddress: { label: 'IP Address' },
|
||||
type: { label: 'Type' },
|
||||
gateway: { label: 'Default gateway' },
|
||||
netmask: { label: 'Netmask' }
|
||||
netmask: { label: 'Netmask' },
|
||||
isdefault: {
|
||||
label: 'Default',
|
||||
converter: function(data) {
|
||||
return data ? 'Yes' : 'No';
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
dataProvider: function(args) {
|
||||
args.response.success({data: args.context.instances[0].nic});
|
||||
args.response.success({data: $.map(args.context.instances[0].nic, function(nic, index) {
|
||||
var name = 'NIC ' + (index + 1);
|
||||
|
||||
if (nic.isdefault) {
|
||||
name += ' (Default)';
|
||||
}
|
||||
return $.extend(nic, {
|
||||
name: name
|
||||
});
|
||||
})});
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue