forked from openshift/origin-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpods-table.html
55 lines (55 loc) · 2.38 KB
/
pods-table.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<table class="table table-bordered table-hover table-mobile table-layout-fixed">
<colgroup>
<col class="col-sm-4">
<col class="col-sm-3">
</colgroup>
<thead>
<tr>
<th>{{customNameHeader || 'Name'}}</th>
<th>Status</th>
<th>Containers Ready</th>
<th>Container Restarts</th>
<th>Age</th>
<th ng-if="activePods">Receiving Traffic</th>
</tr>
</thead>
<tbody ng-if="(pods | hashSize) == 0">
<tr><td colspan="{{activePods ? 6 : 5}}"><em>{{emptyMessage || 'No pods to show'}}</em></td></tr>
</tbody>
<tbody ng-if="(pods | hashSize) > 0">
<tr ng-repeat="pod in pods | orderObjectsByDate : true">
<td data-title="{{customNameHeader || 'Name'}}">
<a href="{{pod | navigateResourceURL}}">{{pod.metadata.name}}</a>
<span ng-if="pod | isDebugPod">
<i class="fa fa-bug info-popover"
aria-hidden="true"
data-toggle="popover"
data-trigger="hover"
dynamic-content="Debugging pod {{pod | debugPodSourceName}}"></i>
<span class="sr-only">Debugging pod {{pod | debugPodSourceName}}</span>
</span>
</td>
<td data-title="Status">
<div row class="status">
<status-icon status="pod | podStatus" disable-animation></status-icon>
<span flex>{{pod | podStatus | sentenceCase}}</span>
</div>
</td>
<td data-title="Ready">{{pod | numContainersReady}}/{{pod.spec.containers.length}}</td>
<td data-title="Restarts">{{pod | numContainerRestarts}}</td>
<td data-title="Age"><span am-time-ago="pod.metadata.creationTimestamp" am-without-suffix="true"></span></td>
<td ng-if="activePods" data-title="Receiving Traffic">
<span ng-if="activePods[pod.metadata.name]">
<span class="fa fa-fw fa-check text-success" aria-hidden="true"></span>
<span class="sr-only">Yes</span>
</span>
<span ng-if="!activePods[pod.metadata.name]">
<span data-toggle="popover" data-trigger="hover" data-content="{{podFailureReasons[pod.status.phase] || 'This pod has no endpoints and is not accepting traffic.'}}" style="cursor: help;">
<span class="fa fa-fw fa-times text-danger" aria-hidden="true" data-toggle="tooltip" style="cursor: help;"></span>
<span class="sr-only">No</span>
</span>
</span>
</td>
</tr>
</tbody>
</table>