Skip to content

Commit d82e7fb

Browse files
author
OpenShift Bot
authored
Merge pull request #895 from rhamilto/issue-7643
Merged by openshift-bot
2 parents 402dd22 + a7df440 commit d82e7fb

File tree

2 files changed

+37
-23
lines changed

2 files changed

+37
-23
lines changed

app/views/directives/annotations.html

+26-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
1-
<div ng-if="annotations" class="gutter-top-bottom">
2-
<a href="" ng-click="toggleAnnotations()" ng-if="annotations && !expandAnnotations">Show annotations</a>
3-
<a href="" ng-click="toggleAnnotations()" ng-if="annotations && expandAnnotations">Hide annotations</a>
4-
<div ng-if="expandAnnotations" class="table-responsive" style="margin-top: 5px;">
5-
<table class="table table-bordered table-bordered-columns key-value-table">
6-
<tbody>
7-
<tr ng-repeat="(annotationKey, annotationValue) in annotations">
8-
<td class="key">{{annotationKey}}</td>
9-
<td class="value">
10-
<truncate-long-text
11-
content="annotationValue | prettifyJSON"
12-
limit="500"
13-
newlineLimit="20"
14-
expandable="true">
15-
</truncate-long-text>
16-
</td>
17-
</tr>
18-
</tbody>
19-
</table>
1+
<div class="gutter-top-bottom">
2+
<p>
3+
<a href="" ng-click="toggleAnnotations()" ng-if="!expandAnnotations">Show annotations</a>
4+
<a href="" ng-click="toggleAnnotations()" ng-if="expandAnnotations">Hide annotations</a>
5+
</p>
6+
<div ng-if="expandAnnotations">
7+
<div ng-if="annotations" class="table-responsive">
8+
<table class="table table-bordered table-bordered-columns key-value-table">
9+
<tbody>
10+
<tr ng-repeat="(annotationKey, annotationValue) in annotations">
11+
<td class="key">{{annotationKey}}</td>
12+
<td class="value">
13+
<truncate-long-text
14+
content="annotationValue | prettifyJSON"
15+
limit="500"
16+
newlineLimit="20"
17+
expandable="true">
18+
</truncate-long-text>
19+
</td>
20+
</tr>
21+
</tbody>
22+
</table>
23+
</div>
24+
<p ng-if="!annotations">
25+
There are no annotations on this resource.
26+
</p>
2027
</div>
2128
</div>

dist/scripts/templates.js

+11-4
Original file line numberDiff line numberDiff line change
@@ -5327,10 +5327,13 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
53275327

53285328

53295329
$templateCache.put('views/directives/annotations.html',
5330-
"<div ng-if=\"annotations\" class=\"gutter-top-bottom\">\n" +
5331-
"<a href=\"\" ng-click=\"toggleAnnotations()\" ng-if=\"annotations && !expandAnnotations\">Show annotations</a>\n" +
5332-
"<a href=\"\" ng-click=\"toggleAnnotations()\" ng-if=\"annotations && expandAnnotations\">Hide annotations</a>\n" +
5333-
"<div ng-if=\"expandAnnotations\" class=\"table-responsive\" style=\"margin-top: 5px\">\n" +
5330+
"<div class=\"gutter-top-bottom\">\n" +
5331+
"<p>\n" +
5332+
"<a href=\"\" ng-click=\"toggleAnnotations()\" ng-if=\"!expandAnnotations\">Show annotations</a>\n" +
5333+
"<a href=\"\" ng-click=\"toggleAnnotations()\" ng-if=\"expandAnnotations\">Hide annotations</a>\n" +
5334+
"</p>\n" +
5335+
"<div ng-if=\"expandAnnotations\">\n" +
5336+
"<div ng-if=\"annotations\" class=\"table-responsive\">\n" +
53345337
"<table class=\"table table-bordered table-bordered-columns key-value-table\">\n" +
53355338
"<tbody>\n" +
53365339
"<tr ng-repeat=\"(annotationKey, annotationValue) in annotations\">\n" +
@@ -5343,6 +5346,10 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
53435346
"</tbody>\n" +
53445347
"</table>\n" +
53455348
"</div>\n" +
5349+
"<p ng-if=\"!annotations\">\n" +
5350+
"There are no annotations on this resource.\n" +
5351+
"</p>\n" +
5352+
"</div>\n" +
53465353
"</div>"
53475354
);
53485355

0 commit comments

Comments
 (0)