aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller
diff options
context:
space:
mode:
authorLuc Didry <luc@didry.org>2019-10-09 17:13:12 +0200
committerLuc Didry <luc@didry.org>2019-10-10 10:37:29 +0200
commitd8e961bdb58c799dde11e5f5de9405ce0e969d4a (patch)
tree41977ce7fa75357c99af04ca6238745bf271308e /src/Wallabag/CoreBundle/Controller
parentafe486531d4dfffff7522efecdff1bcf18d13994 (diff)
downloadwallabag-d8e961bdb58c799dde11e5f5de9405ce0e969d4a.tar.gz
wallabag-d8e961bdb58c799dde11e5f5de9405ce0e969d4a.tar.zst
wallabag-d8e961bdb58c799dde11e5f5de9405ce0e969d4a.zip
💄 Add untagged list link to filter menu
Fix #3804
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index 5c8ecb40..85144a5c 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -567,6 +567,9 @@ class EntryController extends Controller
567 } 567 }
568 } 568 }
569 569
570 $nbEntriesUntagged = $this->get('wallabag_core.entry_repository')
571 ->countUntaggedEntriesByUser($this->getUser()->getId());
572
570 return $this->render( 573 return $this->render(
571 'WallabagCoreBundle:Entry:entries.html.twig', [ 574 'WallabagCoreBundle:Entry:entries.html.twig', [
572 'form' => $form->createView(), 575 'form' => $form->createView(),
@@ -574,6 +577,7 @@ class EntryController extends Controller
574 'currentPage' => $page, 577 'currentPage' => $page,
575 'searchTerm' => $searchTerm, 578 'searchTerm' => $searchTerm,
576 'isFiltered' => $form->isSubmitted(), 579 'isFiltered' => $form->isSubmitted(),
580 'nbEntriesUntagged' => $nbEntriesUntagged,
577 ] 581 ]
578 ); 582 );
579 } 583 }