Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: 사용자 목록 페이지 수정 #438

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,33 +43,33 @@ <h1 class="text-center mb-4">사용자 목록</h1>
</th:block>
</div>
<nav aria-label="Page Navigation">
<ul class="pagination justify-content-center">
<ul class="pagination justify-content-center mt-3">
<li class="page-item" th:classappend="${page.number == 0} ? 'disabled' : ''">
<a class="page-link" th:href="@{|/admin/dict?page=0|}" th:if="${page.number != 0}">처음으로</a>
<a class="page-link" th:href="@{|/admin/member/requests?page=0|}" th:if="${page.number != 0}">처음으로</a>
</li>

<li class="page-item" th:classappend="${page.hasPrevious()} ? '' : 'disabled'">
<a class="page-link" tabindex="-1"
th:href="@{|/admin/dict?page=${page.number - 1}|}"
th:href="@{|/admin/member/requests?page=${page.number - 1}|}"
th:if="${page.hasPrevious()}">이전</a>
</li>

<th:block
th:with="startPage=${(page.number - 5 < 0 ? 0 : page.number - 5)}, endPage=${(page.number + 4 >= page.totalPages ? page.totalPages - 1 : page.number + 4)}">
<li class="page-item" th:classappend="${pageNumber == page.number} ? 'active' : ''"
th:each="pageNumber : ${#numbers.sequence(startPage, endPage)}" th:if="${pageNumber >= 0}">
<a class="page-link" th:href="@{|/admin/dict?page=${pageNumber}|}"
<a class="page-link" th:href="@{|/admin/member/requests?page=${pageNumber}|}"
th:text="${pageNumber + 1}"></a>
</li>
</th:block>

<li class="page-item" th:classappend="${page.hasNext()} ? '' : 'disabled'">
<a class="page-link" th:href="@{|/admin/dict?page=${page.number + 1}|}"
<a class="page-link" th:href="@{|/admin/member/requests?page=${page.number + 1}|}"
th:if="${page.hasNext()}">다음</a>
</li>

<li class="page-item" th:classappend="${page.number == page.totalPages - 1} ? 'disabled' : ''">
<a class="page-link" th:href="@{|/admin/dict?page=${page.totalPages - 1}|}"
<a class="page-link" th:href="@{|/admin/member/requests?page=${page.totalPages - 1}|}"
th:if="${page.number != page.totalPages - 1 && page.totalPages > 0}">끝으로</a>
</li>
</ul>
Expand Down
Loading