]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/TagController.php
Show untagged entries count on tag list
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / TagController.php
index 616c37f2c63e23fdb9a407aec3f294bd67d57207..bc794c7f406fb5abd32f0e4f4ceab4946f1301da 100644 (file)
@@ -86,9 +86,12 @@ class TagController extends Controller
     {
         $tags = $this->get('wallabag_core.tag_repository')
             ->findAllFlatTagsWithNbEntries($this->getUser()->getId());
+        $untagged = $this->get('wallabag_core.entry_repository')
+            ->countUntaggedEntriesForUser($this->getUser()->getId());
 
         return $this->render('WallabagCoreBundle:Tag:tags.html.twig', [
             'tags' => $tags,
+            'untagged' => $untagged
         ]);
     }