forked from openshift/origin-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_service-group.html
89 lines (88 loc) · 4.63 KB
/
_service-group.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<div class="service-group">
<div class="service-group-header"
ng-if="service.metadata.labels.app || displayRoute"
ng-click="toggleCollapse($event)"
ng-class="{ 'has-app-label': appName }">
<h2 ng-if="appName" class="app-name">
<i class="fa fa-angle-down fa-fw" aria-hidden="true" ng-if="!collapse"></i>
<i class="fa fa-angle-right fa-fw" aria-hidden="true" ng-if="collapse"></i>
{{appName | startCase}}
<span ng-if="isDuplicateApp(appName)" class="small">
{{service.metadata.name}}
</span>
</h2>
<h3 class="route-title truncate">
<span ng-if="appName && (displayRoute | isWebRoute)">
<i class="fa fa-external-link small" aria-hidden="true"></i>
</span>
<span ng-if="!appName">
<i class="fa fa-angle-down fa-fw" aria-hidden="true" ng-if="!collapse"></i>
<i class="fa fa-angle-right fa-fw" aria-hidden="true" ng-if="collapse"></i>
</span>
<a ng-if="displayRoute | isWebRoute" target="_blank"
ng-href="{{displayRoute | routeWebURL}}">{{displayRoute | routeLabel}}</a>
<span ng-if="displayRoute && !(displayRoute | isWebRoute)" class="non-web-route">{{displayRoute | routeLabel}}</span>
<span ng-if="routeWarningsByService[service.metadata.name] && routesByService[service.metadata.name].length === 1">
<route-warnings warnings="routeWarningsByService[service.metadata.name]"></route-warnings>
</span>
<small ng-if="(primaryServiceRoutes | hashSize) > 1" class="other-routes-msg">
and
<a ng-href="project/{{projectName}}/browse/routes">{{(primaryServiceRoutes | hashSize) - 1}} other route<span ng-if="(primaryServiceRoutes | hashSize) > 2">s</span></a>
</small>
</h3>
<span ng-if="!displayRoute" class="create-route-link">
<a ng-if="'routes' | canI : 'create'" ng-href="project/{{service.metadata.namespace}}/create-route?service={{service.metadata.name}}">Create Route</a>
</span>
</div>
<div>
<div class="service-group-triggers">
<div ng-repeat="dc in allDeploymentConfigsInGroup">
<div row ng-repeat="pipeline in recentPipelinesByDC[dc.metadata.name] | orderObjectsByDate : true track by (pipeline | uid)"
class="build-pipeline-wrapper animate-repeat animate-slide">
<build-pipeline flex build="pipeline" collapse-stages-on-completion="true" build-config-name-on-expanded="true"></build-pipeline>
</div>
<div>
<triggers triggers="dc.spec.triggers" builds-by-output-image="recentBuildsByOutputImage" namespace="dc.metadata.namespace"></triggers>
</div>
</div>
</div>
<!-- FIXME unserviced things should only be getting the notifications that apply to them but reusing service group to show all
unserviced things makes the notifications show up as a big block at the end of all of them -->
<service-group-notifications ng-if="service"></service-group-notifications>
<div uib-collapse="collapse" class="service-group-body">
<!--
Add a single-alternate-service class if the route has exactly one alternate backend so we
can render that common case specially.
-->
<div class="overview-services"
ng-class="{ 'single-alternate-service': (alternateServices | hashSize) === 1 && totalWeight }">
<overview-service ng-init="isPrimary = true" class="primary-service"></overview-service>
<overview-service
ng-init="isAlternate = true"
ng-repeat="service in alternateServices"
class="alternate-service">
</overview-service>
<overview-service
ng-init="isChild = true"
ng-repeat="service in childServices">
</overview-service>
<div flex column ng-if="alternateServices.length === 0 && childServices.length === 0 && service" class="no-child-services-block">
<div class="no-child-services-message">
<div class="empty-tile">
<h2>No grouped services.</h2>
<p>
No services are grouped with <a ng-href="{{service | navigateResourceURL}}">{{service.metadata.name}}</a>.
<span ng-if="(services | hashSize) > 1 && ('services' | canI : 'update')">Add a service to group them together.</span>
</p>
<div ng-if="(services | hashSize) > 1 && ('services' | canI : 'update')">
<button class="btn btn-primary" ng-click="linkService()">
Group Service
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>