diff options
author | Kevin Decherf <kevin@kdecherf.com> | 2018-09-02 16:43:49 +0200 |
---|---|---|
committer | Kevin Decherf <kevin@kdecherf.com> | 2018-09-02 17:50:02 +0200 |
commit | 86fd3da135d9ca2241dc09680d5dac1dd57fc707 (patch) | |
tree | dc25d02f454dc9a90bb9b55c2f617a0228a499b1 /src/Wallabag/CoreBundle/Controller/TagController.php | |
parent | 685a5d745e2b723a09111d7d31157cced67ea9b4 (diff) | |
download | wallabag-86fd3da135d9ca2241dc09680d5dac1dd57fc707.tar.gz wallabag-86fd3da135d9ca2241dc09680d5dac1dd57fc707.tar.zst wallabag-86fd3da135d9ca2241dc09680d5dac1dd57fc707.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.php | 3 |
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 | ||