mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-17 21:26:27 +00:00
Merge pull request #1293 from wallabag/v2-items-per-page
get itemsPerPage for unread/fav/archive views
This commit is contained in:
commit
55333dfd21
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,7 @@ class EntryController extends Controller
|
||||||
->getRepository('WallabagCoreBundle:Entry')
|
->getRepository('WallabagCoreBundle:Entry')
|
||||||
->findUnreadByUser($this->getUser()->getId());
|
->findUnreadByUser($this->getUser()->getId());
|
||||||
|
|
||||||
|
$entries->setMaxPerPage($this->getUser()->getConfig()->getItemsPerPage());
|
||||||
$entries->setCurrentPage($page);
|
$entries->setCurrentPage($page);
|
||||||
|
|
||||||
return $this->render(
|
return $this->render(
|
||||||
|
@ -123,6 +124,7 @@ class EntryController extends Controller
|
||||||
->getRepository('WallabagCoreBundle:Entry')
|
->getRepository('WallabagCoreBundle:Entry')
|
||||||
->findArchiveByUser($this->getUser()->getId());
|
->findArchiveByUser($this->getUser()->getId());
|
||||||
|
|
||||||
|
$entries->setMaxPerPage($this->getUser()->getConfig()->getItemsPerPage());
|
||||||
$entries->setCurrentPage($page);
|
$entries->setCurrentPage($page);
|
||||||
|
|
||||||
return $this->render(
|
return $this->render(
|
||||||
|
@ -147,6 +149,7 @@ class EntryController extends Controller
|
||||||
->getRepository('WallabagCoreBundle:Entry')
|
->getRepository('WallabagCoreBundle:Entry')
|
||||||
->findStarredByUser($this->getUser()->getId());
|
->findStarredByUser($this->getUser()->getId());
|
||||||
|
|
||||||
|
$entries->setMaxPerPage($this->getUser()->getConfig()->getItemsPerPage());
|
||||||
$entries->setCurrentPage($page);
|
$entries->setCurrentPage($page);
|
||||||
|
|
||||||
return $this->render(
|
return $this->render(
|
||||||
|
|
Loading…
Reference in a new issue