mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-28 09:21:42 +08:00
Started implementation of recycle bin functionality
This commit is contained in:
@ -29,7 +29,7 @@ class HomeController extends Controller
|
||||
|
||||
$recentFactor = count($draftPages) > 0 ? 0.5 : 1;
|
||||
$recents = $this->isSignedIn() ?
|
||||
Views::getUserRecentlyViewed(12*$recentFactor, 0)
|
||||
Views::getUserRecentlyViewed(12*$recentFactor, 1)
|
||||
: Book::visible()->orderBy('created_at', 'desc')->take(12 * $recentFactor)->get();
|
||||
$recentlyUpdatedPages = Page::visible()->where('draft', false)
|
||||
->orderBy('updated_at', 'desc')->take(12)->get();
|
||||
|
Reference in New Issue
Block a user