| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you 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. |
| --> |
| <div class="bs-component"> |
| <div id="assetContainer" style="margin-top:40px"> |
| <table> |
| <tr> |
| <td colspan="7" style="text-align:center;display: none" id="message"> |
| No content. |
| </td> |
| <!-- <td class="icon"> |
| <span class="fa fa-spinner fa-spin fa-3x fa-fw"></span> |
| </td> --> |
| </tr> |
| </table> |
| <table class="table table-striped reco" [mfData]="results" #mf="mfDataTable" [mfRowsOnPage]="5"> |
| <thead> |
| <tr style="background-color:#7D95CC"> |
| <th st-ratio="10">Table Name</th> |
| <th st-ratio="10">DB Name</th> |
| <th st-ratio="20">Owner</th> |
| <th st-ratio="10">Creation Time</th> |
| <th st-ratio="20">Location</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr *ngIf="!results"> |
| <td *ngIf="!results" colspan="7" style="text-align:center"> |
| No content. |
| </td> |
| <!-- <td class="icon"> |
| <span class="fa fa-spinner fa-spin fa-3x fa-fw"></span> |
| </td> --> |
| </tr> |
| </tbody> |
| <tbody *ngFor="let row of mf.data" style="word-break:break-all;"> |
| <tr> |
| <td [ngClass]="{accordion:true}" (click)="row.showDetail=!(row.showDetail)" style="cursor: pointer;"> |
| <i *ngIf="!row.showDetail" class="fa fa-chevron-circle-right blue"></i> |
| <i *ngIf="row.showDetail" class="fa fa-chevron-circle-down blue"></i> {{row.tableName}} |
| </td> |
| <td>{{row.dbName || 'N/A'}}</td> |
| <td>{{row.owner || 'N/A'}}</td> |
| <td>{{(row.createTime * 1000 | date: 'short') || 'N/A'}}</td> |
| <td>{{row.sd.location || 'N/A'}}</td> |
| </tr> |
| <tr *ngIf="row.showDetail"> |
| <td colspan="7" style="padding:20px 30px 10px 30px;"> |
| <table class="table table-striped co" [mfData]="row.sd.cols" #mf2="mfDataTable"> |
| <thead> |
| <tr style="background-color:#7D95CC"> |
| <th st-ratio="15">Name</th> |
| <th st-ratio="15">Type</th> |
| <th st-ratio="15">Comment</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr *ngIf="!row.sd.cols"> |
| <td colspan="7" style="text-align:center">No content.</td> |
| </tr> |
| <tr *ngFor="let item of mf2.data"> |
| <td>{{item.name}}</td> |
| <td>{{item.type}}</td> |
| <td>{{item.comment || 'N/A'}}</td> |
| </tr> |
| </tbody> |
| <!-- <tfoot> |
| <tr> |
| <td colspan="8" class="text-right"> |
| <mfBootstrapPaginator></mfBootstrapPaginator> |
| </td> |
| </tr> |
| </tfoot> --> |
| </table> |
| </td> |
| </tr> |
| </tbody> |
| <tfoot> |
| <tr> |
| <td colspan="8" class="text-right"> |
| <mfBootstrapPaginator></mfBootstrapPaginator> |
| </td> |
| </tr> |
| </tfoot> |
| </table> |
| </div> |
| </div> |