CLOUDSTACK-7731: UI > Infrastructure > Virtual Routers > group by zone/pod/cluster view > listView > detailView > add View All link (i.e. "View all Virtual Routers").
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/314a7fe6 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/314a7fe6 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/314a7fe6 Branch: refs/heads/baremetal-systemvm Commit: 314a7fe62b626d79f612d70ccf56d692a92f5774 Parents: 7072d8d Author: Jessica Wang <[email protected]> Authored: Thu Oct 16 12:06:59 2014 -0700 Committer: Jessica Wang <[email protected]> Committed: Thu Oct 16 12:33:08 2014 -0700 ---------------------------------------------------------------------- ui/scripts/system.js | 45 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/314a7fe6/ui/scripts/system.js ---------------------------------------------------------------------- diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 1a14e31..fbd2f2b 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -9445,6 +9445,27 @@ // forvpc: false }; + if (args.context != undefined) { + if ("routerGroupByZone" in args.context) { + $.extend(data2, { + zoneid: args.context.routerGroupByZone[0].id + }) + } else if ("routerGroupByPod" in args.context) { + $.extend(data2, { + podid: args.context.routerGroupByPod[0].id + }) + } else if ("routerGroupByCluster" in args.context) { + $.extend(data2, { + clusterid: args.context.routerGroupByCluster[0].id + }) + } else if ("routerGroupByAccount" in args.context) { + $.extend(data2, { + account: args.context.routerGroupByAccount[0].name, + domainid: args.context.routerGroupByAccount[0].domainid + }) + } + } + var routers =[]; $.ajax({ url: createURL("listRouters&listAll=true&page=" + args.page + "&pagesize=" + pageSize + array1.join("")), @@ -10078,7 +10099,11 @@ }); }, detailView: { - name: 'label.virtual.routers.group.zone', + name: 'label.virtual.routers.group.zone', + viewAll: { + path: '_zone.virtualRouters', + label: 'label.virtual.appliances' + }, actions: { upgradeRouterToUseNewerTemplate: { label: 'label.upgrade.router.newer.template', @@ -10205,7 +10230,11 @@ }); }, detailView: { - name: 'label.virtual.routers.group.pod', + name: 'label.virtual.routers.group.pod', + viewAll: { + path: '_zone.virtualRouters', + label: 'label.virtual.appliances' + }, actions: { upgradeRouterToUseNewerTemplate: { label: 'label.upgrade.router.newer.template', @@ -10335,7 +10364,11 @@ }); }, detailView: { - name: 'label.virtual.routers.group.cluster', + name: 'label.virtual.routers.group.cluster', + viewAll: { + path: '_zone.virtualRouters', + label: 'label.virtual.appliances' + }, actions: { upgradeRouterToUseNewerTemplate: { label: 'label.upgrade.router.newer.template', @@ -10533,6 +10566,12 @@ }, detailView: { name: 'label.virtual.routers.group.account', + /* + viewAll: { + path: '_zone.virtualRouters', + label: 'label.virtual.appliances' + }, + */ actions: { upgradeRouterToUseNewerTemplate: { label: 'label.upgrade.router.newer.template',
