Project

General

Profile

1
<table class="table table-striped small">
2
	<thead>
3
		<tr>
4
			<th style="width: 40px">#</th>
5
			<th>Service ID</th>
6
			<th>Service Type</th>
7
			<th>Wsdl</th>
8
			<th class="text-center">Status <button type="button" class="btn btn-xs btn-primary" ng-click="pingServices()">verify</button></th>
9
			<th class="text-right">Subscriptions</th>
10
		</tr>
11
	</thead>
12
	<tbody ng-repeat="group in groups">
13
		<tr>
14
			<th colspan="5">
15
				Host: <i>{{group.host}}</i> - Port: <i>{{group.port}}</i> - Context: <i>{{group.context}}</i> 
16
			</th>
17
		</tr>
18
		<tr ng-show="group.services.length == 0">
19
			<td colspan="6">No services</td>
20
		</tr>
21
		<tr ng-repeat="s in group.services">
22
			<td>{{$index + 1}}</td>
23
			<td>
24
				<a href="#/service/{{s.id}}">{{s.id}}</a>
25
			</td>
26
			<td>
27
				<span>{{s.name}}</span>
28
			</td>
29
			<td>
30
				<a href="{{s.protocols.SOAP}}?wsdl" ng-show="s.protocols.SOAP">{{s.protocols.SOAP}}?wsdl</a>
31
			</td>
32
			<td class="text-center">
33
				<span class="label" ng-class="{'label-success' : s.status == 'ACTIVE', 'label-danger' : s.status == 'NOT_RESPONDING' || s.status == 'MISSING', 'label-default' : s.status == 'UNKNOWN', 'label-warning' : s.status == 'PENDING'}">{{s.status}}</span>
34
			</td>
35
			<td class="text-right">
36
				{{s.subscriptions.length}} subscription(s)
37
			</td>
38
		</tr>
39
	</tbody>
40
</table>
(8-8/9)