Project

General

Profile

1
<div class="row">
2
	<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
3
		<span style="font-size: 16px"><b>Results of query</b>: <i>{{currentApiSelectionValue}}</i></span>
4
	</div>
5
	<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
6
		<form class="form-inline pull-right" role="form">
7
			<div class="form-group">
8
				<label class="sr-only" for="apiFilter">Filter...</label>
9
  				<input type="text" class="form-control input-sm" id="apiFilter" ng-model="filterApis" placeholder="Filter..." />
10
  			</div>
11
			<button ng-click="updateApis(true)" class="btn btn-sm btn-default" type="button"><span class="glyphicon glyphicon-refresh"></span></button>
12
			<a href="#" class="btn btn-sm btn-default">back</a>
13
		</form>
14
	</div>
15
</div>
16
	
17
<table class="table table-striped">
18
	<thead>
19
		<tr>
20
			<th class="col-xs-1">Country</th>
21
			<th class="col-xs-6">Datasource Api</th>
22
			<th class="col-xs-1 text-center">Namespace Prefix</th>
23
			<th class="col-xs-1 text-center">Protocol</th>
24
			<th class="col-xs-2 text-center">Last Aggregation Date</th>
25
			<th class="col-xs-1 text-right">Total</th>
26
		</tr>
27
	</thead>
28
	<tbody>
29
		<tr ng-repeat="row in apis | filter: filterApis">
30
			<td><img ng-src="/img/flags/{{row.country}}.gif" /> {{row.country}}</td>
31
			<td>
32
				<span class="label" 
33
					ng-class="{'label-success': row.active, 'label-danger': !row.active}"
34
					style="width: 100px; display: inline-block; padding: 3px;">
35
					{{row.compliance}}
36
				</span> 
37
				<a href="javascript:void(0)" ng-click="showApi(row.dsId, row.id)">
38
					{{row.dsName}}
39
				</a>
40
			</td>
41
			<td class="text-center"  style="font-family: monospace">{{row.prefix}}</td>
42
			<td class="text-center">{{row.protocol}}</td>
43
			<td class="text-center">
44
				<span ng-show="row.aggrDate">
45
					{{row.aggrDate | date:'yyyy-MM-dd HH:mm:ss'}}
46
				</span>
47
				<span ng-hide="row.aggrDate">
48
					<i>not yet available</i>
49
				</span>
50
			</td>
51
			<td class="text-right" ng-class="{'text-success' : row.aggrTotal > 0, 'text-danger' : row.aggrTotal == 0}">
52
				{{row.aggrTotal}}
53
			</td>
54
		</tr>		
55
	</tbody>
56
</table>
57

    
58

    
(1-1/9)