| <!-- |
| 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" > |
| <p> |
| <!--<a class="btn btn-primary btn-o btn-wide" href="#/createdataasset"><i class="fa fa-plus"></i> Register Data Asset</a>--> |
| </p> |
| <div id="assetContainer" style="margin-top:40px"> |
| <table st-table="displayed" st-pipe="paging" class="table table-striped"> |
| <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">Last Access Time</th> |
| <th st-ratio="20">Location</th> |
| |
| </tr> |
| </thead> |
| <tbody ng-if="!displayed || displayed.length == 0"> |
| <tr> |
| <td colspan="7" style="text-align:center">No content.</td> |
| </tr> |
| </tbody> |
| <tbody ng-repeat="row in displayed" style="word-break:break-all;"> |
| <tr> |
| <td ng-class="{accordion:true}" ng-click="row.showDetail=!(row.showDetail)" style="cursor: pointer;"> |
| <i ng-show="!row.showDetail" class="fa fa-chevron-circle-right blue"></i> |
| <i ng-show="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 | date: 'short') || 'N/A'}}</td> |
| <td>{{(row.lastAccessTime | date: 'short') || 'N/A' }}</td> |
| <td>{{row.sd.location || 'N/A'}}</td> |
| </tr> |
| <tr ng-show="row.showDetail"> |
| <td colspan="7" style="padding:20px 30px 10px 30px;"> |
| <table st-table="rowCollection" class="table table-striped" style="word-wrap: break-word;"> |
| <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 ng-if="!row.sd.cols || row.sd.cols.length == 0"> |
| <td colspan="7" style="text-align:center">No content.</td> |
| </tr> |
| <tr ng-repeat="item in row.sd.cols"> |
| <td>{{item.name}}</td> |
| <td>{{item.type}}</td> |
| <td>{{item.comment || 'N/A'}}</td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| </tbody> |
| <tfoot> |
| <tr> |
| <td colspan="8" class="text-right"> |
| <div st-items-by-page="10" st-pagination="" st-displayed-pages="10"></div> |
| </td> |
| </tr> |
| </tfoot> |
| </table> |
| </div> |
| <div class="modal fade" id="confirm-delete" role="dialog"> |
| <div class="modal-dialog modal-xg modal-lg"> |
| <div class="modal-content"> |
| <div class="modal-header"> |
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
| <h4 class="modal-title">Delete the data asset with the below information?</h4> |
| </div> |
| <div class="modal-body"> |
| <ng-include src="'/pages/dataassets/confirmation-delete-dataasset.html'"/> |
| </div> |
| <div class="modal-footer"> |
| <button type="button" class="btn btn-primary" ng-click="sendDeleteRequest()">Yes</button> |
| <button type="button" class="btn btn-default" data-dismiss="modal">No</button> |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |