diff --git a/vitragedashboard/static/dashboard/project/components/sunburst-minimap/sunburst-minimap.directive.js b/vitragedashboard/static/dashboard/project/components/sunburst-minimap/sunburst-minimap.directive.js new file mode 100644 index 0000000..09091f1 --- /dev/null +++ b/vitragedashboard/static/dashboard/project/components/sunburst-minimap/sunburst-minimap.directive.js @@ -0,0 +1,12 @@ +angular.module('horizon.dashboard.project.vitrage') + .directive('hzSunburstMinimap', [ + function () { + return { + restrict: 'E', + scope: { + selected: '=' + }, + templateUrl: STATIC_URL + 'dashboard/project/components/sunburst-minimap/sunburst-minimap.html' + }; + } + ]); diff --git a/vitragedashboard/static/dashboard/project/components/sunburst-minimap/sunburst-minimap.html b/vitragedashboard/static/dashboard/project/components/sunburst-minimap/sunburst-minimap.html new file mode 100644 index 0000000..6647182 --- /dev/null +++ b/vitragedashboard/static/dashboard/project/components/sunburst-minimap/sunburst-minimap.html @@ -0,0 +1,275 @@ +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + +
+
diff --git a/vitragedashboard/static/dashboard/project/components/sunburst/sunburst.directive.js b/vitragedashboard/static/dashboard/project/components/sunburst/sunburst.directive.js index 69ce07b..d40d34e 100644 --- a/vitragedashboard/static/dashboard/project/components/sunburst/sunburst.directive.js +++ b/vitragedashboard/static/dashboard/project/components/sunburst/sunburst.directive.js @@ -88,7 +88,7 @@ function hzSunburst() { } function cloneSelectedItem(d) { - scope.selected = {id: d.id, name: d.name, state: d.state}; + scope.selected = {id: d.id, name: d.name, state: d.state, type: d.type}; } // Interpolate the scales! diff --git a/vitragedashboard/static/dashboard/project/layout/main/compute/compute.html b/vitragedashboard/static/dashboard/project/layout/main/compute/compute.html index 3ad411d..9bcfd9a 100644 --- a/vitragedashboard/static/dashboard/project/layout/main/compute/compute.html +++ b/vitragedashboard/static/dashboard/project/layout/main/compute/compute.html @@ -19,7 +19,12 @@

Topology

- +
+ +
+
+ +
diff --git a/vitragedashboard/static/dashboard/project/layout/main/compute/compute.scss b/vitragedashboard/static/dashboard/project/layout/main/compute/compute.scss index 8092aba..dbeda30 100644 --- a/vitragedashboard/static/dashboard/project/layout/main/compute/compute.scss +++ b/vitragedashboard/static/dashboard/project/layout/main/compute/compute.scss @@ -1,3 +1,11 @@ .vitrage-compute { + .visual-legend { + width: 264px; + height: 100px; + position: absolute; + right: 40px; + margin-top: 20px; + } + } \ No newline at end of file