Merge "Adding Angular Identity Projects Panel"

This commit is contained in:
Jenkins 2015-07-10 18:42:19 +00:00 committed by Gerrit Code Review
commit d6b181c8d6
5 changed files with 60 additions and 1 deletions

View File

@ -26,7 +26,8 @@
*/
angular
.module('hz.dashboard.identity', [
'hz.dashboard.identity.users'
'hz.dashboard.identity.users',
'hz.dashboard.identity.projects'
]);
})();

View File

@ -1,2 +1,3 @@
@import "users/users";
@import "projects/projects";

View File

@ -0,0 +1,33 @@
/**
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
(function() {
'use strict';
/**
* @ngdoc hz.dashboard.identity.projects
* @ng-module
* @description
* Provides all of the services and widgets required
* to support and display the identity projects.
*/
angular
.module('hz.dashboard.identity.projects', [])
.constant('hz.dashboard.identity.projects.basePath', basePath());
function basePath() {
return (window.WEBROOT || '') + '/static/dashboard/identity/projects/';
}
})();

View File

@ -0,0 +1,24 @@
/**
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
(function() {
'use strict';
describe('Identity projects module', function() {
it('should exist', function() {
expect(angular.module('hz.dashboard.identity.projects')).toBeDefined();
});
});
})();