Skip to content

Commit 4dfc7a0

Browse files
committed
Cleanup pagination CSS and UI
1 parent b070525 commit 4dfc7a0

File tree

7 files changed

+11
-75
lines changed

7 files changed

+11
-75
lines changed

app/Repositories/Eloquent/NodeRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function getNodeAllocations($id)
105105
$instance->setRelation(
106106
'allocations',
107107
$instance->allocations()->orderBy('ip', 'asc')->orderBy('port', 'asc')
108-
->with('server')->paginate(50)
108+
->with('server')->paginate(2)
109109
);
110110

111111
return $instance;

public/themes/pterodactyl/css/pterodactyl.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,3 +420,7 @@ label.control-label > span.field-optional:before {
420420
content: "optional";
421421
color: #bbbbbb;
422422
}
423+
424+
.pagination > li > a, .pagination > li > span {
425+
padding: 3px 10px !important;
426+
}

resources/themes/pterodactyl/admin/nodes/view/allocation.blade.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@
7272
@endforeach
7373
</table>
7474
</div>
75-
<div class="box-footer text-center">
76-
{{ $node->allocations->render() }}
77-
</div>
75+
@if($node->allocations->hasPages())
76+
<div class="box-footer text-center">
77+
{{ $node->allocations->render() }}
78+
</div>
79+
@endif
7880
</div>
7981
</div>
8082
<div class="col-sm-4">

resources/themes/pterodactyl/vendor/pagination/bootstrap-4.blade.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

resources/themes/pterodactyl/vendor/pagination/default.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@if ($paginator->lastPage() > 1)
2-
<ul class="pagination">
2+
<ul class="pagination pull-right no-margin">
33
<!-- Previous Page Link -->
44
@if ($paginator->onFirstPage())
55
{{-- <li class="disabled"><span>&laquo;</span></li> --}}

resources/themes/pterodactyl/vendor/pagination/simple-bootstrap-4.blade.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

resources/themes/pterodactyl/vendor/pagination/simple-default.blade.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)