This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continuation of PR #93. - reworked layout for pagination controls on graph - use BucketMatrixPager for pagination logic and state
- Loading branch information
Showing
28 changed files
with
465 additions
and
1,149 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
<div class="status-heatmap-wrapper"> | ||
<div class="clearfix"></div> | ||
<br> | ||
<div class="gf-form" ng-if="ctrl.panel.usingPagination"> | ||
<label class="gf-form-label width-9">Items per page</label> | ||
<input type="number" class="gf-form-input width-5" placeholder="2" data-placement="right" | ||
bs-tooltip="'Number of items to show per page.'" ng-model="ctrl.pageSizeViewer" ng-change="ctrl.changePaginationSize()" | ||
ng-model-onblur> | ||
</div> | ||
|
||
<div class="status-heatmap-canvas-wrapper"> | ||
|
||
<div class="datapoints-warning" ng-if="ctrl.multipleValues || ctrl.noColorDefined || ctrl.noDatapoints"> | ||
<span class="small" ng-if="ctrl.multipleValues" bs-tooltip="'{{ctrl.dataWarnings.multipleValues.tip}}'">{{ctrl.dataWarnings.multipleValues.title}}</span> | ||
<span class="small" ng-if="ctrl.noColorDefined" bs-tooltip="'{{ctrl.dataWarnings.noColorDefined.tip}}'">{{ctrl.dataWarnings.noColorDefined.title}}</span> | ||
<span class="small" ng-if="ctrl.noDatapoints" bs-tooltip="'{{ctrl.dataWarnings.noDatapoints.tip}}'">{{ctrl.dataWarnings.noDatapoints.title}}</span> | ||
</div> | ||
<div class="statusmap-panel" ng-dblclick="ctrl.zoomOut()"></div> | ||
</div> | ||
|
||
<div class="status-heatmap-panel" ng-dblclick="ctrl.zoomOut()"></div> | ||
<div class="status-heatmap-legend-wrapper" ng-if="ctrl.panel.legend.show"> | ||
<status-heatmap-legend></status-heatmap-legend> | ||
</div> | ||
<div class="pagination" ng-if="ctrl.panel.usingPagination"> | ||
Showing {{ctrl.firstPageElement}} to {{ctrl.lastPageElement}} of {{ctrl.totalElements}} entries | ||
<div class="pagination-buttons"> | ||
<button class="btn btn-inverse" ng-disabled="ctrl.currentPage == 0" ng-click="ctrl.currentPage=ctrl.currentPage-1; ctrl.render()"> | ||
Previous | ||
|
||
<div class="clearfix"></div> | ||
|
||
<div class="statusmap-pagination gf-form" ng-if="ctrl.panel.usingPagination"> | ||
<div class="gf-form"> | ||
<button class="btn btn-inverse" ng-disabled="!pager.hasPrev()" ng-click="ctrl.onPrevPage()"> | ||
<i class="fa fa-arrow-left"></i> Previous | ||
</button> | ||
{{ctrl.currentPage+1}}/{{ctrl.numberOfPages}} | ||
<button class="btn btn-inverse" ng-disabled="ctrl.currentPage >= ctrl.cardsData.targets.length/ctrl.pageSizeViewer - 1 || ctrl.numberOfPages == 0" ng-click="ctrl.currentPage=ctrl.currentPage+1; ctrl.render()"> | ||
Next | ||
<label class="gf-form-label">{{pager.currentPage+1}}/{{pager.pages()}}</label> | ||
<button class="btn btn-inverse last-in-group" ng-disabled="!pager.hasNext()" ng-click="ctrl.onNextPage()"> | ||
Next <i class="fa fa-arrow-right"></i> | ||
</button> | ||
</div> | ||
</div> | ||
<div class="status-heatmap-legend-wrapper" ng-if="ctrl.panel.legend.show"> | ||
<status-heatmap-legend></status-heatmap-legend> | ||
|
||
<div class="gf-form"> | ||
<label class="gf-form-label">Rows per page</label> | ||
<input type="number" class="gf-form-input width-3 last-in-group" placeholder="12" data-placement="top" | ||
bs-tooltip="'Number of rows to show per page.'" ng-model="ctrl.pageSizeViewer" ng-change="ctrl.onChangePageSize()" | ||
ng-model-onblur> | ||
</div> | ||
<label class="gf-form-label">Show {{pager.pageStartRow()}} to {{pager.pageEndRow()}} of {{pager.totalRows()}} rows</label> | ||
</div> | ||
</div> | ||
<div class="clearfix"></div> |
Oops, something went wrong.