mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 18:03:54 +00:00
26 lines
991 B
HTML
26 lines
991 B
HTML
<div class="schema-container">
|
|
<div class="schema-control">
|
|
<input type="text" placeholder="Search schema..." class="form-control" ng-model="$ctrl.schemaFilter">
|
|
<button class="btn btn-default"
|
|
title="Refresh Schema"
|
|
ng-click="$ctrl.onRefresh()">
|
|
<span class="zmdi zmdi-refresh"></span>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="schema-browser" vs-repeat vs-size="$ctrl.getSize(table)">
|
|
<div ng-repeat="table in $ctrl.schema | filter:$ctrl.schemaFilter track by table.name">
|
|
<div class="table-name" ng-click="$ctrl.showTable(table)">
|
|
<i class="fa fa-table"></i>
|
|
<strong>
|
|
<span title="{{table.name}}">{{table.name}}</span>
|
|
<span ng-if="table.size !== undefined"> ({{table.size}})</span>
|
|
</strong>
|
|
</div>
|
|
<div uib-collapse="table.collapsed">
|
|
<div ng-repeat="column in table.columns track by column" style="padding-left:16px;">{{column}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|