mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 19:00:09 -04:00
31 lines
915 B
HTML
31 lines
915 B
HTML
<div>
|
|
<table class="table table-condensed table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th ng-repeat="column in $ctrl.columns" ng-click="$ctrl.orderBy(column)" class="sortable-column">
|
|
{{column.title}} <span ng-if="$ctrl.sortIcon(column)"><i class="fa fa-sort-{{$ctrl.sortIcon(column)}}"></i></span>
|
|
</th>
|
|
</tr>
|
|
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="row in $ctrl.rowsToDisplay">
|
|
<td ng-repeat="column in $ctrl.columns" ng-bind-html="$ctrl.sanitize(column.formatFunction(row[column.name]))">
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="text-center">
|
|
<ul uib-pagination total-items="$ctrl.rowsCount"
|
|
items-per-page="$ctrl.itemsPerPage"
|
|
ng-model="$ctrl.page"
|
|
max-size="6"
|
|
class="pagination"
|
|
boundary-link-numbers="true"
|
|
rotate="false"
|
|
next-text='>'
|
|
previous-text='<'
|
|
ng-change="$ctrl.pageChanged()"></ul>
|
|
</div>
|