CLOUDSTACK-2074: cloudstack UI - Affinity - instance detail page - add new tab "Affinity Groups".
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/935b08b2 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/935b08b2 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/935b08b2 Branch: refs/heads/master Commit: 935b08b216c2b48c2035feecc9e14503de73a7cb Parents: 7566eae Author: Jessica Wang <jessica.w...@citrix.com> Authored: Thu Apr 18 10:55:56 2013 -0700 Committer: Jessica Wang <jessica.w...@citrix.com> Committed: Thu Apr 18 10:55:56 2013 -0700 ---------------------------------------------------------------------- ui/scripts/instances.js | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/935b08b2/ui/scripts/instances.js ---------------------------------------------------------------------- diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index baf1823..95f23ed 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -1432,6 +1432,24 @@ } }, + /** + * Affinity Groups tab + */ + affinityGroups: { + title: 'label.affinity.groups', + multiple: true, + fields: [ + { + id: { label: 'ID' }, + name: { label: 'label.name' }, + description: { label: 'label.description' } + } + ], + dataProvider: function(args) { + args.response.success({data: args.context.instances[0].affinitygroup}); + } + }, + /** * Statistics tab */