aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/TagController.php
diff options
context:
space:
mode:
authorKevin Decherf <kevin@kdecherf.com>2018-09-02 16:43:49 +0200
committerKevin Decherf <kevin@kdecherf.com>2018-09-02 17:50:02 +0200
commit86fd3da135d9ca2241dc09680d5dac1dd57fc707 (patch)
treedc25d02f454dc9a90bb9b55c2f617a0228a499b1 /src/Wallabag/CoreBundle/Controller/TagController.php
parent685a5d745e2b723a09111d7d31157cced67ea9b4 (diff)
downloadwallabag-tags-3235.tar.gz
wallabag-tags-3235.tar.zst
wallabag-tags-3235.zip
Show untagged entries count on tag listtags-3235
Closes #3235 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/TagController.php')
-rw-r--r--src/Wallabag/CoreBundle/Controller/TagController.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php
index 616c37f2..bc794c7f 100644
--- a/src/Wallabag/CoreBundle/Controller/TagController.php
+++ b/src/Wallabag/CoreBundle/Controller/TagController.php
@@ -86,9 +86,12 @@ class TagController extends Controller
86 { 86 {
87 $tags = $this->get('wallabag_core.tag_repository') 87 $tags = $this->get('wallabag_core.tag_repository')
88 ->findAllFlatTagsWithNbEntries($this->getUser()->getId()); 88 ->findAllFlatTagsWithNbEntries($this->getUser()->getId());
89 $untagged = $this->get('wallabag_core.entry_repository')
90 ->countUntaggedEntriesForUser($this->getUser()->getId());
89 91
90 return $this->render('WallabagCoreBundle:Tag:tags.html.twig', [ 92 return $this->render('WallabagCoreBundle:Tag:tags.html.twig', [
91 'tags' => $tags, 93 'tags' => $tags,
94 'untagged' => $untagged
92 ]); 95 ]);
93 } 96 }
94 97