| <!-- |
| Copyright 2017 Huawei Technologies Co., Ltd |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <table class="table table-bordered table-responsive margin20"> |
| <thead class="infoTableHead schemaTable"> |
| <th>{{ "name" | translate }}</th> |
| <th>{{ "operations" | translate }}</th> |
| </thead> |
| <tbody> |
| <tr ng-repeat="schema in schemaName"> |
| <td>{{ schema }}</td> |
| <td><md-button class="md-raised schemaBtn" ng-click="testSchema(schema)">{{ "testSchema" | translate }}</md-button> |
| <md-button class="md-raised schemaBtn" ng-click="downloadSchema(schema)" >{{ "download" | translate }} HTML</md-button> |
| </td> |
| </tr> |
| <tr ng-if="schemaName.length == 0" class="text-center"> |
| <td colspan="2">{{ "noSchemaFound" | translate }}</td> |
| </tr> |
| </tbody> |
| </table> |
| <div ng-if="schemaName.length > 0"> |
| <md-button class="md-raised schemaBtn" ng-click="downloadAllSchema()">{{ "downloadAll" | translate }}</md-button> |
| </div> |
| <div id="singleTemplate" ng-hide="true"> |
| <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.3.2/swagger-ui.css"> |
| <div id="swagger-template"></div> |
| </div> |
| <div id="multipleTemplate" ng-hide="true"> |
| <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.3.2/swagger-ui.css"> |
| <div ng-repeat="schema in schemaName"> |
| <div id="{{schema | formatSchema}}"></div> |
| </div> |
| </div> |