Skip to content

Commit 1aa1912

Browse files
committed
1 parent 955d89c commit 1aa1912

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
1919
* Fixes potential bug with invalid CIDR notation (ex: `192.168.1.1/z`) when adding allocations that could cause over 4 million records to be created at once.
2020
* `[pre.4]` — Fixes bug preventing server updates from occurring by the system due to undefined `Auth::user()` in the event listener.
2121
* `[pre.4]` — Fixes `Server::byUuid()` caching to actually clear the cache for *all* users, rather than the logged in user by using cache tags.
22+
* `[pre.4]` — Fixes server listing on frontend not displaying a page selector when more than 10 servers exist.
2223

2324
### Added
2425
* Ability to assign multiple allocations at once when creating a new server.

app/Http/Controllers/Base/IndexController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct()
4747
public function getIndex(Request $request)
4848
{
4949
return view('base.index', [
50-
'servers' => $request->user()->serverAccessCollection(10),
50+
'servers' => $request->user()->serverAccessCollection(config('pterodactyl.paginate.frontend.servers')),
5151
]);
5252
}
5353

config/pterodactyl.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,18 @@
1616
'author' => env('SERVICE_AUTHOR'),
1717
],
1818

19+
/*
20+
|--------------------------------------------------------------------------
21+
| Pagination
22+
|--------------------------------------------------------------------------
23+
|
24+
| Certain pagination result counts can be configured here and will take
25+
| effect globally.
26+
*/
27+
'paginate' => [
28+
'frontend' => [
29+
'servers' => 15,
30+
],
31+
],
32+
1933
];

resources/themes/pterodactyl/base/index.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
</tbody>
7979
</table>
8080
</div>
81+
@if($servers->hasPages())
82+
<div class="box-footer">
83+
<div class="col-md-12 text-center">{!! $servers->render() !!}</div>
84+
</div>
85+
@endif
8186
</div>
8287
</div>
8388
</div>

0 commit comments

Comments
 (0)