aierate commented on code in PR #5646:
URL: https://github.com/apache/ozone/pull/5646#discussion_r1402244743
##########
hadoop-hdds/server-scm/src/main/resources/webapps/scm/scm-overview.html:
##########
@@ -62,22 +62,35 @@ <h2>Node Status</h2>
</tr>
</tbody>
</table>
-<div>
- <nav aria-label="...">
- <ul class="pagination">
- <li class="page-item" ng-class="{disabled:currentPage==1}"
- ng-click="handlePagination(currentPage-1,(currentPage==1))">
- <span class="page-link" tabindex="-1">Previous</span>
- </li>
- <li class="page-item active">
- <span class="page-link">{{currentPage}} </span>
- </li>
- <li class="page-item" ng-class="{disabled:lastIndex==currentPage}"
- ng-click="handlePagination(currentPage+1,
(lastIndex==currentPage))">
- <span class="page-link" tabindex="-1">Next</span>
- </li>
- </ul>
- </nav>
+
+<div class="row">
+ <div class="col-md-6 text-left">
+ <label>Page:</label>
+ <select class="form-select" ng-model="currentPage"
ng-change="handlePagination(currentPage, false)">
+ <option ng-repeat="page in getPagesArray()"
ng-value="page">{{page}}</option>
+ </select>
+ <span>of {{lastIndex}}. </span>
+ <span ng-if="nodeStatus && nodeStatus.length > 0">
+ Showing {{getCurrentPageFirstItemIndex()}} to
{{getCurrentPageLastItemIndex()}} of {{totalItems}} entries.
Review Comment:
Thanks @dombizita. I think this is enough, I referred to HDFS UI.
<img width="818" alt="image"
src="https://github.com/apache/ozone/assets/56783384/97f9c0e3-5dc7-4e12-b57a-08619514a302">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]