Project

General

Profile

1
var module = angular.module('reposUI', ['ngGrid', 'ngRoute', 'repoControllers']);
2

    
3
addCommonDirectives(module);
4

    
5
module.config([
6
	'$routeProvider',
7
	function($routeProvider) {
8
		$routeProvider
9
		.when('/browse',                           { templateUrl: '../resources/html/repoBrowse.html', controller: 'repoBrowseCtrl' })
10
		.when('/list/:param/:value',               { templateUrl: '../resources/html/repoList.html',   controller: 'repoListCtrl'   })
11
		.when('/api/:repoId/:ifaceId/:metawf/:wf', { templateUrl: './repos/repoApi.html',    controller: 'repoApiCtrl'    })
12
		.otherwise({ redirectTo: '/browse' });
13
	}
14
]);
15

    
16
module.directive('ngApiMdstoreInfo', function() {
17
	return {
18
		restrict: 'E',
19
		scope: {
20
			'label' : '@',
21
			'date'  : '=',
22
			'total' : '=',
23
			'id'    : '='
24
		},
25
		templateUrl: '../resources/html/ngApiMdstoreInfo.html'
26
	}
27
});
28

    
29
module.directive('ngApiObjectstoreInfo', function() {
30
    return {
31
        restrict: 'E',
32
        scope: {
33
            'label' : '@',
34
            'date'  : '=',
35
            'total' : '=',
36
            'id'    : '='
37
        },
38
        templateUrl: '../resources/html/ngApiObjectstoreInfo.html'
39
    }
40
});
41

    
(5-5/7)