Skip to content

Commit c1a0186

Browse files
author
OpenShift Bot
authored
Merge pull request #2148 from rhamilto/issue-2108
Merged by openshift-bot
2 parents 1dae20b + a2cb3dc commit c1a0186

File tree

2 files changed

+59
-58
lines changed

2 files changed

+59
-58
lines changed

app/views/overview/_service-instance-row.html

+45-44
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,55 @@ <h3>
99
<a ng-href="{{row.apiObject | navigateResourceURL}}" ng-bind-html="row.displayName | highlightKeywords : row.state.filterKeywords"></a>
1010
<div ng-bind-html="row.apiObject.metadata.name | highlightKeywords : row.state.filterKeywords" class="list-row-longname"></div>
1111
</h3>
12-
<div class="status-icons">
13-
<notification-icon ng-if="!row.expanded" alerts="row.notifications"></notification-icon>
12+
<div class="status-icons" ng-if="!row.expanded">
13+
<notification-icon alerts="row.notifications"></notification-icon>
14+
<div ng-switch="row.instanceStatus">
15+
<span ng-switch-when="failed"
16+
dynamic-content="{{row.apiObject | serviceInstanceFailedMessage}}"
17+
data-toggle="tooltip"
18+
data-trigger="hover"
19+
class="notification-icon-count">
20+
<span class="pficon pficon-error-circle-o" aria-hidden="true"></span>
21+
<span>Error</span>
22+
</span>
23+
<span ng-switch-when="deleted" class="notification-icon-count">
24+
<span class="pficon pficon-warning-triangle-o" aria-hidden="true"></span>
25+
Marked for Deletion
26+
</span>
27+
<span ng-switch-when="pending" class="notification-icon-count">
28+
<span class="spinner spinner-xs spinner-inline" aria-hidden="true"></span>
29+
<span>Pending</span>
30+
</span>
31+
</div>
1432
</div>
1533
</div>
16-
<div class="list-pf-details" ng-if="!row.expanded" ng-switch="row.instanceStatus">
17-
18-
<span ng-switch-when="failed"
19-
dynamic-content="{{row.apiObject | serviceInstanceFailedMessage}}"
20-
data-toggle="tooltip"
21-
data-trigger="hover">
22-
<span class="pficon pficon-error-circle-o" aria-hidden="true"></span>
23-
<span>Error</span>
24-
</span>
25-
<span ng-switch-when="deleted">
26-
<span class="pficon pficon-warning-triangle-o" aria-hidden="true"></span>
27-
Marked for Deletion
34+
<div class="list-pf-details" ng-if="!row.expanded">
35+
<span ng-if="!row.bindings.length
36+
&& row.isBindable
37+
&& ({resource: 'serviceinstancecredentials', group: 'servicecatalog.k8s.io'} | canI : 'create')"
38+
class="hidden-xs hidden-sm">
39+
<a href="" ng-click="row.showOverlayPanel('bindService', {target: row.apiObject})">
40+
<span class="pficon pficon-add-circle-o" aria-hidden="true"></span>
41+
Create Binding
42+
</a>
2843
</span>
29-
<span ng-switch-when="pending">
30-
<span class="spinner spinner-xs spinner-inline" aria-hidden="true"></span>
31-
<span>Pending</span>
32-
</span>
33-
<div ng-switch-default>
34-
<div class="hidden-xs hidden-sm">
35-
<span ng-if="!row.bindings.length
36-
&& row.isBindable
37-
&& ({resource: 'serviceinstancecredentials', group: 'servicecatalog.k8s.io'} | canI : 'create')">
38-
<a href="" ng-click="row.showOverlayPanel('bindService', {target: row.apiObject})">
39-
<span class="pficon pficon-add-circle-o" aria-hidden="true"></span>
40-
Create Binding
41-
</a>
44+
<div ng-if="row.bindings.length" class="hidden-xs hidden-sm">
45+
<span class="component-label">Bindings</span>
46+
<p ng-if="firstBinding = row.bindings[0]" class="bindings">
47+
<span ng-if="application = row.state.applicationsByBinding[firstBinding.metadata.name][0]">
48+
{{application.metadata.name}}
4249
</span>
43-
<span ng-if="row.bindings.length" class="component-label">Bindings</span>
44-
<p ng-if="firstBinding = row.bindings[0]" class="bindings">
45-
<span ng-if="application = row.state.applicationsByBinding[firstBinding.metadata.name][0]">
46-
{{application.metadata.name}}
47-
</span>
48-
<span ng-if="!application">
49-
{{firstBinding.spec.secretName}}
50-
</span>
51-
<span ng-if="row.bindings.length > 1">
52-
and
53-
<a
54-
ng-if="row.bindings.length > 1"
55-
ng-click="row.toggleExpand($event, true)">
56-
{{row.bindings.length -1}} other<span ng-if="row.bindings.length > 2">s</span></a>
57-
</span>
58-
</p>
59-
</div>
50+
<span ng-if="!application">
51+
{{firstBinding.spec.secretName}}
52+
</span>
53+
<span ng-if="row.bindings.length > 1">
54+
and
55+
<a
56+
ng-if="row.bindings.length > 1"
57+
ng-click="row.toggleExpand($event, true)">
58+
{{row.bindings.length -1}} other<span ng-if="row.bindings.length > 2">s</span></a>
59+
</span>
60+
</p>
6061
</div>
6162
<div
6263
class="hidden-xs"

dist/scripts/templates.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -12308,34 +12308,35 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
1230812308
"<a ng-href=\"{{row.apiObject | navigateResourceURL}}\" ng-bind-html=\"row.displayName | highlightKeywords : row.state.filterKeywords\"></a>\n" +
1230912309
"<div ng-bind-html=\"row.apiObject.metadata.name | highlightKeywords : row.state.filterKeywords\" class=\"list-row-longname\"></div>\n" +
1231012310
"</h3>\n" +
12311-
"<div class=\"status-icons\">\n" +
12312-
"<notification-icon ng-if=\"!row.expanded\" alerts=\"row.notifications\"></notification-icon>\n" +
12313-
"</div>\n" +
12314-
"</div>\n" +
12315-
"<div class=\"list-pf-details\" ng-if=\"!row.expanded\" ng-switch=\"row.instanceStatus\">\n" +
12316-
"<span ng-switch-when=\"failed\" dynamic-content=\"{{row.apiObject | serviceInstanceFailedMessage}}\" data-toggle=\"tooltip\" data-trigger=\"hover\">\n" +
12311+
"<div class=\"status-icons\" ng-if=\"!row.expanded\">\n" +
12312+
"<notification-icon alerts=\"row.notifications\"></notification-icon>\n" +
12313+
"<div ng-switch=\"row.instanceStatus\">\n" +
12314+
"<span ng-switch-when=\"failed\" dynamic-content=\"{{row.apiObject | serviceInstanceFailedMessage}}\" data-toggle=\"tooltip\" data-trigger=\"hover\" class=\"notification-icon-count\">\n" +
1231712315
"<span class=\"pficon pficon-error-circle-o\" aria-hidden=\"true\"></span>\n" +
1231812316
"<span>Error</span>\n" +
1231912317
"</span>\n" +
12320-
"<span ng-switch-when=\"deleted\">\n" +
12318+
"<span ng-switch-when=\"deleted\" class=\"notification-icon-count\">\n" +
1232112319
"<span class=\"pficon pficon-warning-triangle-o\" aria-hidden=\"true\"></span>\n" +
1232212320
"Marked for Deletion\n" +
1232312321
"</span>\n" +
12324-
"<span ng-switch-when=\"pending\">\n" +
12322+
"<span ng-switch-when=\"pending\" class=\"notification-icon-count\">\n" +
1232512323
"<span class=\"spinner spinner-xs spinner-inline\" aria-hidden=\"true\"></span>\n" +
1232612324
"<span>Pending</span>\n" +
1232712325
"</span>\n" +
12328-
"<div ng-switch-default>\n" +
12329-
"<div class=\"hidden-xs hidden-sm\">\n" +
12326+
"</div>\n" +
12327+
"</div>\n" +
12328+
"</div>\n" +
12329+
"<div class=\"list-pf-details\" ng-if=\"!row.expanded\">\n" +
1233012330
"<span ng-if=\"!row.bindings.length\n" +
12331-
" && row.isBindable\n" +
12332-
" && ({resource: 'serviceinstancecredentials', group: 'servicecatalog.k8s.io'} | canI : 'create')\">\n" +
12331+
" && row.isBindable\n" +
12332+
" && ({resource: 'serviceinstancecredentials', group: 'servicecatalog.k8s.io'} | canI : 'create')\" class=\"hidden-xs hidden-sm\">\n" +
1233312333
"<a href=\"\" ng-click=\"row.showOverlayPanel('bindService', {target: row.apiObject})\">\n" +
1233412334
"<span class=\"pficon pficon-add-circle-o\" aria-hidden=\"true\"></span>\n" +
1233512335
"Create Binding\n" +
1233612336
"</a>\n" +
1233712337
"</span>\n" +
12338-
"<span ng-if=\"row.bindings.length\" class=\"component-label\">Bindings</span>\n" +
12338+
"<div ng-if=\"row.bindings.length\" class=\"hidden-xs hidden-sm\">\n" +
12339+
"<span class=\"component-label\">Bindings</span>\n" +
1233912340
"<p ng-if=\"firstBinding = row.bindings[0]\" class=\"bindings\">\n" +
1234012341
"<span ng-if=\"application = row.state.applicationsByBinding[firstBinding.metadata.name][0]\">\n" +
1234112342
"{{application.metadata.name}}\n" +
@@ -12350,7 +12351,6 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
1235012351
"</span>\n" +
1235112352
"</p>\n" +
1235212353
"</div>\n" +
12353-
"</div>\n" +
1235412354
"<div class=\"hidden-xs\" ng-if=\"(!row.instanceStatus || row.instanceStatus === 'ready') && row.apiObject.status.dashboardURL\">\n" +
1235512355
"<a ng-href=\"{{row.apiObject.status.dashboardURL}}\" target=\"_blank\">\n" +
1235612356
"Console\n" +

0 commit comments

Comments
 (0)