diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-08-28 15:56:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-28 15:56:16 +0200 |
commit | 13d44ca766b1020327f0b9b005dc2e95deb156a1 (patch) | |
tree | d21dcb2f718cb9c593ed20d73ca4164ee859f165 /src/Wallabag/CoreBundle/Controller/EntryController.php | |
parent | 8635ab1cd1ae90d7757a59444ef80759a040eccf (diff) | |
parent | 0184e09a66dbc400d831ba9cc045924cb16722e9 (diff) | |
download | wallabag-13d44ca766b1020327f0b9b005dc2e95deb156a1.tar.gz wallabag-13d44ca766b1020327f0b9b005dc2e95deb156a1.tar.zst wallabag-13d44ca766b1020327f0b9b005dc2e95deb156a1.zip |
Merge pull request #2243 from wallabag/feature-untagged-entries
Add untagged entries
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/EntryController.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/EntryController.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index d71ba6cd..624576b5 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php | |||
@@ -226,6 +226,10 @@ class EntryController extends Controller | |||
226 | $repository = $this->get('wallabag_core.entry_repository'); | 226 | $repository = $this->get('wallabag_core.entry_repository'); |
227 | 227 | ||
228 | switch ($type) { | 228 | switch ($type) { |
229 | case 'untagged': | ||
230 | $qb = $repository->getBuilderForUntaggedByUser($this->getUser()->getId()); | ||
231 | |||
232 | break; | ||
229 | case 'starred': | 233 | case 'starred': |
230 | $qb = $repository->getBuilderForStarredByUser($this->getUser()->getId()); | 234 | $qb = $repository->getBuilderForStarredByUser($this->getUser()->getId()); |
231 | break; | 235 | break; |
@@ -523,4 +527,19 @@ class EntryController extends Controller | |||
523 | ['entry' => $entry] | 527 | ['entry' => $entry] |
524 | ); | 528 | ); |
525 | } | 529 | } |
530 | |||
531 | /** | ||
532 | * Shows untagged articles for current user. | ||
533 | * | ||
534 | * @param Request $request | ||
535 | * @param int $page | ||
536 | * | ||
537 | * @Route("/untagged/list/{page}", name="untagged", defaults={"page" = "1"}) | ||
538 | * | ||
539 | * @return \Symfony\Component\HttpFoundation\Response | ||
540 | */ | ||
541 | public function showUntaggedEntriesAction(Request $request, $page) | ||
542 | { | ||
543 | return $this->showEntries('untagged', $request, $page); | ||
544 | } | ||
526 | } | 545 | } |