cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: updated refs/heads/ui-vm-affinity to 935b08b
Date Thu, 18 Apr 2013 17:56:40 GMT
Updated Branches:
  refs/heads/ui-vm-affinity 7566eae20 -> 935b08b21


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/ui-vm-affinity
Commit: 935b08b216c2b48c2035feecc9e14503de73a7cb
Parents: 7566eae
Author: Jessica Wang <jessica.wang@citrix.com>
Authored: Thu Apr 18 10:55:56 2013 -0700
Committer: Jessica Wang <jessica.wang@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
            */


Mime
View raw message