-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
98 additions
and
90 deletions.
There are no files selected for viewing
64 changes: 33 additions & 31 deletions
64
src/Illuminate/Pagination/resources/views/bootstrap-4.blade.php
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,34 +1,36 @@ | ||
<ul class="pagination"> | ||
<!-- Previous Page Link --> | ||
@if ($paginator->onFirstPage()) | ||
<li class="page-item disabled"><span class="page-link">«</span></li> | ||
@else | ||
<li class="page-item"><a class="page-link" href="{{ $paginator->previousPageUrl() }}" rel="prev">«</a></li> | ||
@endif | ||
|
||
<!-- Pagination Elements --> | ||
@foreach ($elements as $element) | ||
<!-- "Three Dots" Separator --> | ||
@if (is_string($element)) | ||
<li class="page-item disabled"><span class="page-link">{{ $element }}</span></li> | ||
@if (count($elements) > 1) | ||
<ul class="pagination"> | ||
<!-- Previous Page Link --> | ||
@if ($paginator->onFirstPage()) | ||
<li class="page-item disabled"><span class="page-link">«</span></li> | ||
@else | ||
<li class="page-item"><a class="page-link" href="{{ $paginator->previousPageUrl() }}" rel="prev">«</a></li> | ||
@endif | ||
|
||
<!-- Array Of Links --> | ||
@if (is_array($element)) | ||
@foreach ($element as $page => $url) | ||
@if ($page == $paginator->currentPage()) | ||
<li class="page-item active"><span class="page-link">{{ $page }}</span></li> | ||
@else | ||
<li class="page-item"><a class="page-link" href="{{ $url }}">{{ $page }}</a></li> | ||
@endif | ||
@endforeach | ||
@endif | ||
@endforeach | ||
<!-- Pagination Elements --> | ||
@foreach ($elements as $element) | ||
<!-- "Three Dots" Separator --> | ||
@if (is_string($element)) | ||
<li class="page-item disabled"><span class="page-link">{{ $element }}</span></li> | ||
@endif | ||
|
||
<!-- Next Page Link --> | ||
@if ($paginator->hasMorePages()) | ||
<li class="page-item"><a class="page-link" href="{{ $paginator->nextPageUrl() }}" rel="next">»</a></li> | ||
@else | ||
<li class="page-item disabled"><span class="page-link">»</span></li> | ||
@endif | ||
</ul> | ||
<!-- Array Of Links --> | ||
@if (is_array($element)) | ||
@foreach ($element as $page => $url) | ||
@if ($page == $paginator->currentPage()) | ||
<li class="page-item active"><span class="page-link">{{ $page }}</span></li> | ||
@else | ||
<li class="page-item"><a class="page-link" href="{{ $url }}">{{ $page }}</a></li> | ||
@endif | ||
@endforeach | ||
@endif | ||
@endforeach | ||
|
||
<!-- Next Page Link --> | ||
@if ($paginator->hasMorePages()) | ||
<li class="page-item"><a class="page-link" href="{{ $paginator->nextPageUrl() }}" rel="next">»</a></li> | ||
@else | ||
<li class="page-item disabled"><span class="page-link">»</span></li> | ||
@endif | ||
</ul> | ||
@endif |
64 changes: 33 additions & 31 deletions
64
src/Illuminate/Pagination/resources/views/default.blade.php
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,34 +1,36 @@ | ||
<ul class="pagination"> | ||
<!-- Previous Page Link --> | ||
@if ($paginator->onFirstPage()) | ||
<li class="disabled"><span>«</span></li> | ||
@else | ||
<li><a href="{{ $paginator->previousPageUrl() }}" rel="prev">«</a></li> | ||
@endif | ||
|
||
<!-- Pagination Elements --> | ||
@foreach ($elements as $element) | ||
<!-- "Three Dots" Separator --> | ||
@if (is_string($element)) | ||
<li class="disabled"><span>{{ $element }}</span></li> | ||
@if (count($elements) > 1) | ||
<ul class="pagination"> | ||
<!-- Previous Page Link --> | ||
@if ($paginator->onFirstPage()) | ||
<li class="disabled"><span>«</span></li> | ||
@else | ||
<li><a href="{{ $paginator->previousPageUrl() }}" rel="prev">«</a></li> | ||
@endif | ||
|
||
<!-- Array Of Links --> | ||
@if (is_array($element)) | ||
@foreach ($element as $page => $url) | ||
@if ($page == $paginator->currentPage()) | ||
<li class="active"><span>{{ $page }}</span></li> | ||
@else | ||
<li><a href="{{ $url }}">{{ $page }}</a></li> | ||
@endif | ||
@endforeach | ||
@endif | ||
@endforeach | ||
<!-- Pagination Elements --> | ||
@foreach ($elements as $element) | ||
<!-- "Three Dots" Separator --> | ||
@if (is_string($element)) | ||
<li class="disabled"><span>{{ $element }}</span></li> | ||
@endif | ||
|
||
<!-- Next Page Link --> | ||
@if ($paginator->hasMorePages()) | ||
<li><a href="{{ $paginator->nextPageUrl() }}" rel="next">»</a></li> | ||
@else | ||
<li class="disabled"><span>»</span></li> | ||
@endif | ||
</ul> | ||
<!-- Array Of Links --> | ||
@if (is_array($element)) | ||
@foreach ($element as $page => $url) | ||
@if ($page == $paginator->currentPage()) | ||
<li class="active"><span>{{ $page }}</span></li> | ||
@else | ||
<li><a href="{{ $url }}">{{ $page }}</a></li> | ||
@endif | ||
@endforeach | ||
@endif | ||
@endforeach | ||
|
||
<!-- Next Page Link --> | ||
@if ($paginator->hasMorePages()) | ||
<li><a href="{{ $paginator->nextPageUrl() }}" rel="next">»</a></li> | ||
@else | ||
<li class="disabled"><span>»</span></li> | ||
@endif | ||
</ul> | ||
@endif |
30 changes: 16 additions & 14 deletions
30
src/Illuminate/Pagination/resources/views/simple-bootstrap-4.blade.php
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,15 +1,17 @@ | ||
<ul class="pagination"> | ||
<!-- Previous Page Link --> | ||
@if ($paginator->onFirstPage()) | ||
<li class="page-item disabled"><span class="page-link">«</span></li> | ||
@else | ||
<li class="page-item"><a class="page-link" href="{{ $paginator->previousPageUrl() }}" rel="prev">«</a></li> | ||
@endif | ||
@if (!$paginator->onFirstPage() || $paginator->hasMorePages()) | ||
<ul class="pagination"> | ||
<!-- Previous Page Link --> | ||
@if ($paginator->onFirstPage()) | ||
<li class="page-item disabled"><span class="page-link">«</span></li> | ||
@else | ||
<li class="page-item"><a class="page-link" href="{{ $paginator->previousPageUrl() }}" rel="prev">«</a></li> | ||
@endif | ||
|
||
<!-- Next Page Link --> | ||
@if ($paginator->hasMorePages()) | ||
<li class="page-item"><a class="page-link" href="{{ $paginator->nextPageUrl() }}" rel="next">»</a></li> | ||
@else | ||
<li class="page-item disabled"><span class="page-link">»</span></li> | ||
@endif | ||
</ul> | ||
<!-- Next Page Link --> | ||
@if ($paginator->hasMorePages()) | ||
<li class="page-item"><a class="page-link" href="{{ $paginator->nextPageUrl() }}" rel="next">»</a></li> | ||
@else | ||
<li class="page-item disabled"><span class="page-link">»</span></li> | ||
@endif | ||
</ul> | ||
@endif |
30 changes: 16 additions & 14 deletions
30
src/Illuminate/Pagination/resources/views/simple-default.blade.php
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,15 +1,17 @@ | ||
<ul class="pagination"> | ||
<!-- Previous Page Link --> | ||
@if ($paginator->onFirstPage()) | ||
<li class="disabled"><span>«</span></li> | ||
@else | ||
<li><a href="{{ $paginator->previousPageUrl() }}" rel="prev">«</a></li> | ||
@endif | ||
@if (!$paginator->onFirstPage() || $paginator->hasMorePages()) | ||
<ul class="pagination"> | ||
<!-- Previous Page Link --> | ||
@if ($paginator->onFirstPage()) | ||
<li class="disabled"><span>«</span></li> | ||
@else | ||
<li><a href="{{ $paginator->previousPageUrl() }}" rel="prev">«</a></li> | ||
@endif | ||
|
||
<!-- Next Page Link --> | ||
@if ($paginator->hasMorePages()) | ||
<li><a href="{{ $paginator->nextPageUrl() }}" rel="next">»</a></li> | ||
@else | ||
<li class="disabled"><span>»</span></li> | ||
@endif | ||
</ul> | ||
<!-- Next Page Link --> | ||
@if ($paginator->hasMorePages()) | ||
<li><a href="{{ $paginator->nextPageUrl() }}" rel="next">»</a></li> | ||
@else | ||
<li class="disabled"><span>»</span></li> | ||
@endif | ||
</ul> | ||
@endif |