mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-16 18:01:38 +00:00
Enhanced tests and changed route
This commit is contained in:
parent
0aeaf0e8c2
commit
6dfc031839
8 changed files with 18 additions and 18 deletions
|
@ -282,13 +282,13 @@ class EntryController extends Controller
|
|||
*
|
||||
* @param int $page
|
||||
*
|
||||
* @Route("/with_annotations/list/{page}", name="with_annotations", defaults={"page" = "1"})
|
||||
* @Route("/annotated/list/{page}", name="annotated", defaults={"page" = "1"})
|
||||
*
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function showWithAnnotationsEntriesAction(Request $request, $page)
|
||||
{
|
||||
return $this->showEntries('with_annotations', $request, $page);
|
||||
return $this->showEntries('annotated', $request, $page);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -296,7 +296,7 @@ class EntryController extends Controller
|
|||
*
|
||||
* @param string $type
|
||||
*
|
||||
* @Route("/{type}/random", name="random_entry", requirements={"type": "unread|starred|archive|untagged|with_annotations|all"})
|
||||
* @Route("/{type}/random", name="random_entry", requirements={"type": "unread|starred|archive|untagged|annotated|all"})
|
||||
*
|
||||
* @return \Symfony\Component\HttpFoundation\RedirectResponse
|
||||
*/
|
||||
|
@ -577,7 +577,7 @@ class EntryController extends Controller
|
|||
$qb = $repository->getBuilderForArchiveByUser($this->getUser()->getId());
|
||||
$formOptions['filter_archived'] = true;
|
||||
break;
|
||||
case 'with_annotations':
|
||||
case 'annotated':
|
||||
$qb = $repository->getBuilderForAnnotationsByUser($this->getUser()->getId());
|
||||
break;
|
||||
case 'unread':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue