1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-12 16:58:37 +00:00

Add untagged entries

Fix #1631
This commit is contained in:
Nicolas Lœuillet 2016-08-26 16:55:41 +02:00 committed by Jeremy Benoist
parent 8635ab1cd1
commit b6520f0b15
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
17 changed files with 57 additions and 1 deletions

View file

@ -226,6 +226,10 @@ class EntryController extends Controller
$repository = $this->get('wallabag_core.entry_repository');
switch ($type) {
case 'untagged':
$qb = $repository->getBuilderForUntaggedByUser($this->getUser()->getId());
break;
case 'starred':
$qb = $repository->getBuilderForStarredByUser($this->getUser()->getId());
break;
@ -523,4 +527,19 @@ class EntryController extends Controller
['entry' => $entry]
);
}
/**
* Shows untagged articles for current user.
*
* @param Request $request
* @param int $page
*
* @Route("/untagged/list/{page}", name="untagged", defaults={"page" = "1"})
*
* @return \Symfony\Component\HttpFoundation\Response
*/
public function showUntaggedEntriesAction(Request $request, $page)
{
return $this->showEntries('untagged', $request, $page);
}
}