-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-70002] Fix the width of the pagination buttons (#255)
- Loading branch information
1 parent
d71dd4a
commit 168c8c2
Showing
7 changed files
with
110 additions
and
251 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core"> | ||
<div> | ||
<j:if test="${!filter.equals("created")}"> | ||
<h3 class="jenkins-!-margin-bottom-2">${%Entries per page}:</h3> | ||
|
||
<div class="jch-entries-per-page"> | ||
<j:forEach var="entryPerPageVal" items="${entryPerPageArray}"> | ||
<j:choose> | ||
<j:when test="${entriesPerPage.equals(entryPerPageVal)}"> | ||
<a class="jenkins-button jenkins-button--primary" href="?filter=${filter}&pageNum=${0}&entriesPerPage=${entryPerPageVal}" rel="noopener noreferrer">${entryPerPageVal}</a> | ||
</j:when> | ||
<j:otherwise> | ||
<a class="jenkins-button jenkins-button--tertiary" href="?filter=${filter}&pageNum=${0}&entriesPerPage=${entryPerPageVal}" rel="noopener noreferrer">${entryPerPageVal}</a> | ||
</j:otherwise> | ||
</j:choose> | ||
</j:forEach> | ||
</div> | ||
</j:if> | ||
</div> | ||
</j:jelly> |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout"> | ||
<div> | ||
<j:if test="${maxPageNum != 0}"> | ||
<h3 class="jenkins-!-margin-bottom-2">${%Page}:</h3> | ||
|
||
<div class="jch-pagination"> | ||
<!--"<" for one step back--> | ||
<j:choose> | ||
<j:when test="${pageNum > 0}"> | ||
<a class="jenkins-button jenkins-button--tertiary" href="?filter=${filter}&pageNum=${pageNum-1}&entriesPerPage=${entriesPerPage}" rel="noopener noreferrer"> | ||
<l:icon src="symbol-chevron-back-outline plugin-ionicons-api" /> | ||
</a> | ||
</j:when> | ||
<j:otherwise> | ||
<a class="jenkins-button jenkins-button--tertiary" rel="noopener noreferrer"> | ||
<l:icon src="symbol-chevron-back-outline plugin-ionicons-api" /> | ||
</a> | ||
</j:otherwise> | ||
</j:choose> | ||
|
||
<!--page navigation: "1 ... 5 6 7 8 9 ... 20"--> | ||
<j:forEach var="currentPageNum" items="${relevantPageNums}"> | ||
<j:choose> | ||
<j:when test="${currentPageNum == -1}"> | ||
<a class="jenkins-button jenkins-button--tertiary" rel="noopener noreferrer"> | ||
<b>…</b> | ||
</a> | ||
</j:when> | ||
<j:when test="${currentPageNum == pageNum}"> | ||
<a class="jenkins-button jenkins-button--primary" rel="noopener noreferrer"> | ||
${currentPageNum+1}</a> | ||
</j:when> | ||
<j:otherwise> | ||
<a class="jenkins-button jenkins-button--tertiary" href="?filter=${filter}&pageNum=${currentPageNum}&entriesPerPage=${entriesPerPage}" rel="noopener noreferrer"> | ||
${currentPageNum+1}</a> | ||
</j:otherwise> | ||
</j:choose> | ||
</j:forEach> | ||
|
||
<!--">" for one step forward--> | ||
<j:choose> | ||
<j:when test="${maxPageNum > pageNum}"> | ||
<a class="jenkins-button jenkins-button--tertiary" href="?filter=${filter}&pageNum=${pageNum+1}&entriesPerPage=${entriesPerPage}" rel="noopener noreferrer"> | ||
<l:icon src="symbol-chevron-forward-outline plugin-ionicons-api" /> | ||
</a> | ||
</j:when> | ||
<j:otherwise> | ||
<a class="jenkins-button jenkins-button--tertiary" rel="noopener noreferrer"> | ||
<l:icon src="symbol-chevron-forward-outline plugin-ionicons-api" /> | ||
</a> | ||
</j:otherwise> | ||
</j:choose> | ||
</div> | ||
</j:if> | ||
</div> | ||
</j:jelly> |
Empty file.
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
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
Oops, something went wrong.