Revision 34800
Added by Michele Artini about 9 years ago
modules/dnet-information-service/trunk/src/main/resources/eu/dnetlib/functionality/modular/ui/views/ui/is.st | ||
---|---|---|
11 | 11 |
<div ng-app="isManager" class="row"> |
12 | 12 |
<div class="col-sm-3 col-lg-2" ng-controller="moduleMenuCtrl"> |
13 | 13 |
<ul class="nav nav-pills nav-stacked"> |
14 |
<li ng-class="{active : isActive('^\/service')}"><a href="#/services">Services</a></li>
|
|
15 |
<li ng-class="{active : isActive('^\/(types|dsList|ds)\/CONFIGURATION')}"><a href="#/types/CONFIGURATION">Configurations</a></li>
|
|
16 |
<li ng-class="{active : isActive('^\/(types|dsList|ds)\/UNIT')}"><a href="#/types/UNIT">Managed Units</a></li>
|
|
14 |
<li ng-class="{active : isActive('^\/srv')}"><a href="#/srv">Services</a></li>
|
|
15 |
<li ng-class="{active : isActive('^\/ds\/CONFIGURATION')}"><a href="#/ds/CONFIGURATION">Configurations</a></li>
|
|
16 |
<li ng-class="{active : isActive('^\/ds\/UNIT')}"><a href="#/ds/UNIT">Managed Units</a></li>
|
|
17 | 17 |
<li ng-class="{active : isActive('^\/q')}"><a href="#/q">SQL Query</a></li> |
18 | 18 |
<li ng-class="{active : isActive('^\/bulk')}"><a href="#/bulk">Bulk importer</a></li> |
19 | 19 |
<li ng-class="{active : isActive('^\/blackboard')}"><a href="#/blackboard">Blackboard messages</a></li> |
modules/dnet-information-service/trunk/src/main/resources/eu/dnetlib/web/resources/html/is_templates/dsList.html | ||
---|---|---|
20 | 20 |
<tbody> |
21 | 21 |
<tr ng-repeat="ds in list"> |
22 | 22 |
<td>{{$index + 1}}</td> |
23 |
<td><a href="#/ds/{{kind}}/{{ds.id}}/{{format}}">{{ds.id}}</a></td>
|
|
23 |
<td><a href="#/ds/{{kind}}/{{type}}/{{format}}/{{ds.id}}">{{ds.id}}</a></td>
|
|
24 | 24 |
<td>{{ds.code}}</td> |
25 | 25 |
<td>{{ds.name}}</td> |
26 | 26 |
<td>{{ds.description}}</td> |
modules/dnet-information-service/trunk/src/main/resources/eu/dnetlib/web/resources/html/is_templates/services.html | ||
---|---|---|
23 | 23 |
<tr ng-repeat="s in group.services"> |
24 | 24 |
<td>{{$index + 1}}</td> |
25 | 25 |
<td> |
26 |
<a href="#/service/{{s.id}}">{{s.id}}</a>
|
|
26 |
<a href="#/srv/{{s.id}}">{{s.id}}</a>
|
|
27 | 27 |
</td> |
28 | 28 |
<td> |
29 | 29 |
<span>{{s.name}}</span> |
modules/dnet-information-service/trunk/src/main/resources/eu/dnetlib/web/resources/html/is_templates/blackboard.html | ||
---|---|---|
19 | 19 |
<td colspan="6">No blackboard messsages</td> |
20 | 20 |
</tr> |
21 | 21 |
<tr ng-repeat="b in blackboards"> |
22 |
<td><a href="#/getService/{{b.profId}}">{{b.messageId}}</a></td>
|
|
22 |
<td><a href="#/srv/{{b.profId}}">{{b.serviceId}}</a></td>
|
|
23 | 23 |
<td>{{b.resourceType}}</td> |
24 | 24 |
<td class="text-center">{{b.action}}</td> |
25 | 25 |
<td class="text-center">{{b.date}}</td> |
modules/dnet-information-service/trunk/src/main/resources/eu/dnetlib/web/resources/html/is_templates/types.html | ||
---|---|---|
11 | 11 |
ng-class="{'label-primary': t.format == 'JSON', 'label-danger': t.format == 'XML', 'label-warning': t.format == 'TEXT'}"> |
12 | 12 |
{{t.format}} |
13 | 13 |
</span> |
14 |
<a href="#/dsList/{{kind}}/{{t.type}}/{{t.format}}">{{t.type}}</a>
|
|
14 |
<a href="#/ds/{{kind}}/{{t.type}}/{{t.format}}">{{t.type}}</a> |
|
15 | 15 |
<span class="badge pull-right">{{t.total}}</span> |
16 | 16 |
</li> |
17 | 17 |
</ul> |
modules/dnet-information-service/trunk/src/main/resources/eu/dnetlib/web/resources/js/is.js | ||
---|---|---|
4 | 4 |
'$routeProvider', |
5 | 5 |
function($routeProvider) { |
6 | 6 |
$routeProvider |
7 |
.when('/services', { templateUrl: '../resources/html/is_templates/services.html', controller: 'servicesCtrl' })
|
|
8 |
.when('/service/:id', { templateUrl: '../resources/html/is_templates/service.html', controller: 'serviceCtrl' })
|
|
9 |
.when('/types/:kind', { templateUrl: '../resources/html/is_templates/types.html', controller: 'typesCtrl' })
|
|
10 |
.when('/dsList/:kind/:type/:format', { templateUrl: '../resources/html/is_templates/dsList.html', controller: 'dsListCtrl' })
|
|
11 |
.when('/ds/:kind/:id/:format', { templateUrl: '../resources/html/is_templates/ds.html', controller: 'dsCtrl' })
|
|
12 |
.when('/q', { templateUrl: '../resources/html/is_templates/isQuery.html', controller: 'isQueryCtrl' }) |
|
13 |
.when('/bulk', { templateUrl: '../resources/html/is_templates/bulk.html', controller: 'bulkImporterCtrl' }) |
|
14 |
.when('/blackboard', { templateUrl: '../resources/html/is_templates/blackboard.html', controller: 'blackboardCtrl' }) |
|
15 |
.otherwise({ redirectTo: '/services' });
|
|
7 |
.when('/srv', { templateUrl: '../resources/html/is_templates/services.html', controller: 'servicesCtrl' })
|
|
8 |
.when('/srv/:id', { templateUrl: '../resources/html/is_templates/service.html', controller: 'serviceCtrl' })
|
|
9 |
.when('/ds/:kind', { templateUrl: '../resources/html/is_templates/types.html', controller: 'typesCtrl' })
|
|
10 |
.when('/ds/:kind/:type/:format', { templateUrl: '../resources/html/is_templates/dsList.html', controller: 'dsListCtrl' })
|
|
11 |
.when('/ds/:kind/:type/:format/:id', { templateUrl: '../resources/html/is_templates/ds.html', controller: 'dsCtrl' })
|
|
12 |
.when('/q', { templateUrl: '../resources/html/is_templates/isQuery.html', controller: 'isQueryCtrl' })
|
|
13 |
.when('/bulk', { templateUrl: '../resources/html/is_templates/bulk.html', controller: 'bulkImporterCtrl' })
|
|
14 |
.when('/blackboard', { templateUrl: '../resources/html/is_templates/blackboard.html', controller: 'blackboardCtrl' })
|
|
15 |
.otherwise({ redirectTo: '/srv' });
|
|
16 | 16 |
} |
17 | 17 |
]); |
18 | 18 |
|
Also available in: Unified diff
css