forked from openshift/origin-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathannotations.html
23 lines (23 loc) · 878 Bytes
/
annotations.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<p ng-if="annotations" ng-class="{'mar-bottom-xl': !expandAnnotations}">
<a href="" ng-click="toggleAnnotations()">{{expandAnnotations ? 'Hide Annotations' : 'Show Annotations'}}</a>
</p>
<div ng-if="expandAnnotations && annotations" class="table-responsive scroll-shadows-horizontal">
<table class="table table-bordered table-bordered-columns key-value-table">
<tbody>
<tr ng-repeat="(annotationKey, annotationValue) in annotations">
<td class="key">{{annotationKey}}</td>
<td class="value">
<truncate-long-text
content="annotationValue | prettifyJSON"
limit="500"
newline-limit="20"
expandable="true">
</truncate-long-text>
</td>
</tr>
</tbody>
</table>
</div>
<p ng-if="!annotations" class="mar-bottom-xl">
There are no annotations on this resource.
</p>