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
			'syncDescription' : '@',
25
			'syncFunction'    : '&',
26
		},
27
		templateUrl: '../resources/html/ngApiMdstoreInfo.html'
28
	}
29
});
30

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

    
(5-5/7)