-
-
- {$ resobj.name $}
-
-
+
+
+
+ {$ level $}
+
+
+
+
+
+
+ {$ resobj.name $}
+
+
+
+
+
diff --git a/heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/css/hotgen.scss b/heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/css/hotgen.scss
index e1361345..c9c24e28 100644
--- a/heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/css/hotgen.scss
+++ b/heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/css/hotgen.scss
@@ -169,3 +169,14 @@ md-icon.spinner{
overflow: auto;
max-height: 500px;
}
+.md-nav-bar {
+ border-style: none;
+ border-width: 0 0;
+ position: absolute;
+ left: 50%;
+ transform: translate(-50%, -50%);
+}
+.navbar-content{
+ margin-top: 3%;
+ text-align: center;
+}
diff --git a/heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/js/components/icons.controller.js b/heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/js/components/icons.controller.js
index 0314b3f2..ba7d809e 100644
--- a/heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/js/components/icons.controller.js
+++ b/heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/js/components/icons.controller.js
@@ -9,8 +9,25 @@
$scope.resource_admin = hotgenGlobals.get_node_admin();
$scope.admin = hotgenGlobals.get_resource_options().auth.admin;
$scope.basePath = basePath;
- }]);
+ $scope.project_types = {};
+ for (var idx in $scope.resource_types){
+ var pidx = idx.split('__');
+ if (!pidx || pidx.length != 3){
+ continue
+ }
+ var level = pidx[0]+'::'+pidx[1]
+ if (! (level in $scope.project_types)){
+ $scope.project_types[level] = {}
+ }
+ $scope.project_types[level][idx] = $scope.resource_types[idx];
+ }
+ $scope.currentNavItem = Object.keys($scope.project_types)[0];
+ $scope.showIcon = function(){
+// console.log($scope.currentNavItem)
+ };
+
+ }]);
})();
diff --git a/heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/js/components/icons.controller.spec.js b/heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/js/components/icons.controller.spec.js
index 7f1acef7..03579ed7 100644
--- a/heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/js/components/icons.controller.spec.js
+++ b/heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/js/components/icons.controller.spec.js
@@ -9,6 +9,8 @@
beforeEach(inject(function($injector){
hotgenGlobals = $injector.get('hotgenGlobals');
+ hotgenGlobals.update_resource_icons('OS__Project__Resource', '');
+ hotgenGlobals.update_resource_icons('OS__Key', '');
}));
beforeEach(inject(function(_$controller_, $rootScope) {
@@ -33,6 +35,7 @@
expect($scope.basePath).toBe($window.STATIC_URL + 'dashboard/project/heat_dashboard/template_generator/');
}]));
+
});
})();