This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/directives/resource-view.html
Joseph Schorr c7e439f593 Set a default error message for resource views
Ensures that we don't display an empty error box
2017-11-28 15:38:48 +02:00

9 lines
402 B
HTML

<div class="resource-view-element">
<div class="cor-loader" ng-show="getState(resources) == 'loading'"></div>
<div class="co-alert co-alert-warning" ng-show="getState(resources) == 'error'">
{{ errorMessage || 'Could not load resource' }}
</div>
<div class="resource-content" ng-class="getState(resources) == 'ready' ? 'visible' : 'hidden'">
<span ng-transclude></span>
</div>
</div>