diff options
author | Thomas Citharel <github@tcit.fr> | 2019-06-06 14:09:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-06 14:09:23 +0200 |
commit | 9c7997db8ee3a743a3d4e5955320af9a7d388a7b (patch) | |
tree | b9aec370eb8d9cd5b8d9c30a67c42d2526283102 /src/Wallabag/CoreBundle/Controller | |
parent | c19845a7ae5fe7c1ff22fd560c48e4af8b9da15a (diff) | |
parent | 35c7819cb63a9c481a2b612755d881d24d6586d0 (diff) | |
download | wallabag-9c7997db8ee3a743a3d4e5955320af9a7d388a7b.tar.gz wallabag-9c7997db8ee3a743a3d4e5955320af9a7d388a7b.tar.zst wallabag-9c7997db8ee3a743a3d4e5955320af9a7d388a7b.zip |
Show untagged entries count on tag list (#3993)
Show untagged entries count on tag list
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-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 d0155c60..90d36d71 100644 --- a/src/Wallabag/CoreBundle/Controller/TagController.php +++ b/src/Wallabag/CoreBundle/Controller/TagController.php | |||
@@ -87,6 +87,8 @@ class TagController extends Controller | |||
87 | { | 87 | { |
88 | $tags = $this->get('wallabag_core.tag_repository') | 88 | $tags = $this->get('wallabag_core.tag_repository') |
89 | ->findAllFlatTagsWithNbEntries($this->getUser()->getId()); | 89 | ->findAllFlatTagsWithNbEntries($this->getUser()->getId()); |
90 | $nbEntriesUntagged = $this->get('wallabag_core.entry_repository') | ||
91 | ->countUntaggedEntriesByUser($this->getUser()->getId()); | ||
90 | 92 | ||
91 | $renameForms = []; | 93 | $renameForms = []; |
92 | foreach ($tags as $tag) { | 94 | foreach ($tags as $tag) { |
@@ -96,6 +98,7 @@ class TagController extends Controller | |||
96 | return $this->render('WallabagCoreBundle:Tag:tags.html.twig', [ | 98 | return $this->render('WallabagCoreBundle:Tag:tags.html.twig', [ |
97 | 'tags' => $tags, | 99 | 'tags' => $tags, |
98 | 'renameForms' => $renameForms, | 100 | 'renameForms' => $renameForms, |
101 | 'nbEntriesUntagged' => $nbEntriesUntagged, | ||
99 | ]); | 102 | ]); |
100 | } | 103 | } |
101 | 104 | ||