]> BookStack Code Mirror - bookstack/commitdiff
Merge branch 'master' into issue-181
authorNilesh Deepak <redacted>
Tue, 4 Jul 2017 09:46:46 +0000 (15:16 +0530)
committerGitHub <redacted>
Tue, 4 Jul 2017 09:46:46 +0000 (15:16 +0530)
1  2 
app/Http/Controllers/BookController.php

index 086929558ff55c08412369c8cd48a753c67c5d42,4313a4e2082a246bcf908db46a9f0814c8fcdec2..4ed945944364bc70bf21230b5cc9d806f2d61839
@@@ -36,11 -36,12 +36,13 @@@ class BookController extends Controlle
       */
      public function index()
      {
-         $books = $this->entityRepo->getAllPaginated('book', 10);
+         $books = $this->entityRepo->getAllPaginated('book', 16);
          $recents = $this->signedIn ? $this->entityRepo->getRecentlyViewed('book', 4, 0) : false;
-         $popular = $this->entityRepo->getPopular('book', 4, 0);
+         $popular = $this->entityRepo->getPopular('book', 3, 0);
+         $display = $this->currentUser->display;
          $this->setPageTitle('Books');
-         return view('books/index', ['books' => $books, 'recents' => $recents, 'popular' => $popular, 'display' => $display]);  //added displaly to access user display
++
+         return view('books/index', ['books' => $books, 'recents' => $recents, 'popular' => $popular, 'display' => $display]); //added displaly to access user display
      }
  
      /**
Morty Proxy This is a proxified and sanitized view of the page, visit original site.