-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2214 from jeff-phillips-18/fixes
Merged by openshift-bot
- Loading branch information
Showing
2 changed files
with
25 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,23 @@ | ||
<p ng-class="{'mar-bottom-xl': !expandAnnotations}"> | ||
<a href="" ng-click="toggleAnnotations()" ng-if="!expandAnnotations">Show Annotations</a> | ||
<a href="" ng-click="toggleAnnotations()" ng-if="expandAnnotations">Hide Annotations</a> | ||
<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"> | ||
<div ng-if="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> | ||
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters