closes #344
This commit is contained in:
parent
955d89c0c6
commit
1aa191210a
4 changed files with 21 additions and 1 deletions
|
@ -19,6 +19,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
|
|||
* 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.
|
||||
* `[pre.4]` — Fixes bug preventing server updates from occurring by the system due to undefined `Auth::user()` in the event listener.
|
||||
* `[pre.4]` — Fixes `Server::byUuid()` caching to actually clear the cache for *all* users, rather than the logged in user by using cache tags.
|
||||
* `[pre.4]` — Fixes server listing on frontend not displaying a page selector when more than 10 servers exist.
|
||||
|
||||
### Added
|
||||
* Ability to assign multiple allocations at once when creating a new server.
|
||||
|
|
|
@ -47,7 +47,7 @@ class IndexController extends Controller
|
|||
public function getIndex(Request $request)
|
||||
{
|
||||
return view('base.index', [
|
||||
'servers' => $request->user()->serverAccessCollection(10),
|
||||
'servers' => $request->user()->serverAccessCollection(config('pterodactyl.paginate.frontend.servers')),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -16,4 +16,18 @@ return [
|
|||
'author' => env('SERVICE_AUTHOR'),
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Certain pagination result counts can be configured here and will take
|
||||
| effect globally.
|
||||
*/
|
||||
'paginate' => [
|
||||
'frontend' => [
|
||||
'servers' => 15,
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
|
|
|
@ -78,6 +78,11 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@if($servers->hasPages())
|
||||
<div class="box-footer">
|
||||
<div class="col-md-12 text-center">{!! $servers->render() !!}</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue