More schedule changes

This commit is contained in:
Dane Everitt 2017-09-13 21:46:43 -05:00
parent 457c910c35
commit 7f76684453
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
20 changed files with 365 additions and 348 deletions

View file

@ -157,12 +157,12 @@
@endcan
@can('list-tasks', $server)
<li
@if(starts_with(Route::currentRouteName(), 'server.tasks'))
@if(starts_with(Route::currentRouteName(), 'server.schedules'))
class="active"
@endif
>
<a href="{{ route('server.tasks', $server->uuidShort)}}">
<i class="fa fa-clock-o"></i> <span>@lang('navigation.server.task_management')</span>
<a href="{{ route('server.schedules', $server->uuidShort)}}">
<i class="fa fa-clock-o"></i> <span>@lang('navigation.server.schedules')</span>
<span class="pull-right-container">
<span class="label label-primary pull-right">{{ \Pterodactyl\Models\Schedule::select('id')->where('server_id', $server->id)->where('is_active', 1)->count() }}</span>
</span>