|
2 | 2 | <thead>
|
3 | 3 | <tr>
|
4 | 4 | <th>{{customNameHeader || 'Name'}}</th>
|
5 |
| - <th ng-if="ports && showNodePorts">Node Port</th> |
6 |
| - <th ng-if="ports" role="presentation"></th> |
7 |
| - <th ng-if="ports">Service Port</th> |
8 |
| - <th ng-if="ports" role="presentation"></th> |
9 |
| - <th>Target Port</th> |
10 | 5 | <th>Hostname</th>
|
11 |
| - <th ng-if="!ports">Routes To</th> |
| 6 | + <th>Routes To</th> |
| 7 | + <th>Target Port</th> |
12 | 8 | <th>TLS Termination</th>
|
13 | 9 | </tr>
|
14 | 10 | </thead>
|
15 | 11 | <tbody ng-if="(routes | hashSize) == 0">
|
16 | 12 | <tr><td colspan="5"><em>{{emptyMessage || 'No routes to show'}}</em></td></tr>
|
17 | 13 | </tbody>
|
18 |
| -<tbody> |
19 |
| - <tr ng-repeat="route in routes | orderObjectsByDate : true"> |
| 14 | +<tbody ng-repeat="route in routes | orderObjectsByDate : true"> |
| 15 | + <tr> |
20 | 16 | <td data-title="{{ customNameHeader || 'Name' }}">
|
21 | 17 | <a href="{{route | navigateResourceURL}}">{{route.metadata.name}}</a>
|
22 | 18 | <route-warnings ng-if="route.spec.to.kind !== 'Service' || services"
|
23 | 19 | route="route"
|
24 | 20 | service="services[route.spec.to.name]">
|
25 | 21 | </route-warnings>
|
26 | 22 | </td>
|
27 |
| - <td ng-if="ports && showNodePorts" data-title="Node Port"> |
28 |
| - <span ng-if="ports[route.metadata.name].nodePort">{{ports[route.metadata.name].nodePort}}</span> |
29 |
| - <span ng-if="!ports[route.metadata.name].nodePort" class="text-muted">none</span> |
30 |
| - </td> |
31 |
| - <td ng-if="ports" role="presentation" class="text-muted">→</td> |
32 |
| - <td ng-if="ports" data-title="Service Port"> |
33 |
| - {{ports[route.metadata.name].port}}/{{ports[route.metadata.name].protocol}} |
34 |
| - <span ng-if="ports[route.metadata.name].name">({{ports[route.metadata.name].name}})</span> |
35 |
| - </td> |
36 |
| - <td ng-if="ports" role="presentation" class="text-muted">→</td> |
37 |
| - <!-- Add non-breaking space to empty cells. Otherwise, table-mobile layout is broken. --> |
38 |
| - <td data-title="Target Port" ng-if="!ports"> |
39 |
| - <span ng-if="route.spec.port.targetPort"> |
40 |
| - <span ng-if="route.spec.to.kind !== 'Service'">{{route.spec.port.targetPort}}</span> |
41 |
| - <!-- Show the short display port in the table, but the long in the title attr. --> |
42 |
| - <span ng-if="route.spec.to.kind === 'Service'" |
43 |
| - ng-attr-title="{{route | routeTargetPortMapping : services[route.spec.to.name]}}"> |
44 |
| - {{route.spec.port.targetPort}} |
45 |
| - </span> |
46 |
| - </span> |
47 |
| - <span ng-if="!route.spec.port.targetPort"> </span> |
48 |
| - </td> |
49 |
| - <td data-title="Target Port" ng-if="ports"> |
50 |
| - {{ports[route.metadata.name].targetPort}} |
51 |
| - </td> |
52 | 23 | <td data-title="Hostname">
|
53 | 24 | <span ng-if="(route | isWebRoute)" class="word-break">
|
54 | 25 | <a href="{{route | routeWebURL}}" target="_blank">{{route | routeLabel}}</a>
|
|
61 | 32 | <span class="sr-only">Pending</span>
|
62 | 33 | </span>
|
63 | 34 | </td>
|
64 |
| - <td data-title="Routes To" ng-if="!ports"> |
| 35 | + <td data-title="Routes To"> |
65 | 36 | <span ng-if="route.spec.to.kind !== 'Service'">{{route.spec.to.kind}}: {{route.spec.to.name}}</span>
|
66 | 37 | <span ng-if="route.spec.to.kind === 'Service'"><a ng-href="{{route.spec.to.name | navigateResourceURL : 'Service': route.metadata.namespace}}">{{route.spec.to.name}}</a></span>
|
67 | 38 | </td>
|
| 39 | + <!-- Add non-breaking space to empty cells. Otherwise, table-mobile layout is broken. --> |
| 40 | + <td data-title="Target Port"> |
| 41 | + <span ng-if="route.spec.port.targetPort"> |
| 42 | + <span ng-if="route.spec.to.kind !== 'Service'">{{route.spec.port.targetPort}}</span> |
| 43 | + <!-- Show the short display port in the table, but the long in the title attr. --> |
| 44 | + <span ng-if="route.spec.to.kind === 'Service'" |
| 45 | + ng-attr-title="{{route | routeTargetPortMapping : services[route.spec.to.name]}}"> |
| 46 | + {{route.spec.port.targetPort}} |
| 47 | + </span> |
| 48 | + </span> |
| 49 | + <span ng-if="!route.spec.port.targetPort"> </span> |
| 50 | + </td> |
68 | 51 | <!-- Use shorter Termination title for table-mobile to avoid overlapping text. -->
|
69 | 52 | <td data-title="Termination">
|
70 | 53 | {{route.spec.tls.termination}}
|
|
0 commit comments