mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 03:42:32 +01:00
Made a couple of fixes during testing
- Updated audit table so long entity names did not squish everything else. - Added filtering to view service popular list so that recycle binned items did not cause issues.
This commit is contained in:
parent
47a6c621ff
commit
75a795ab72
@ -74,7 +74,12 @@ class ViewService
|
||||
$query->whereIn('viewable_type', $this->entityProvider->getMorphClasses($filterModels));
|
||||
}
|
||||
|
||||
return $query->with('viewable')->skip($skipCount)->take($count)->get()->pluck('viewable');
|
||||
return $query->with('viewable')
|
||||
->skip($skipCount)
|
||||
->take($count)
|
||||
->get()
|
||||
->pluck('viewable')
|
||||
->filter();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -63,7 +63,7 @@
|
||||
@include('partials.table-user', ['user' => $activity->user, 'user_id' => $activity->user_id])
|
||||
</td>
|
||||
<td>{{ $activity->type }}</td>
|
||||
<td>
|
||||
<td width="40%">
|
||||
@if($activity->entity)
|
||||
<a href="{{ $activity->entity->getUrl() }}" class="table-entity-item">
|
||||
<span role="presentation" class="icon text-{{$activity->entity->getType()}}">@icon($activity->entity->getType())</span>
|
||||
|
Loading…
Reference in New Issue
Block a user