1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-10 19:32:07 +00:00

Show untagged entries count on tag list (#3993)

Show untagged entries count on tag list
This commit is contained in:
Thomas Citharel 2019-06-06 14:09:23 +02:00 committed by GitHub
commit 9c7997db8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 42 additions and 2 deletions

View file

@ -87,6 +87,8 @@ class TagController extends Controller
{
$tags = $this->get('wallabag_core.tag_repository')
->findAllFlatTagsWithNbEntries($this->getUser()->getId());
$nbEntriesUntagged = $this->get('wallabag_core.entry_repository')
->countUntaggedEntriesByUser($this->getUser()->getId());
$renameForms = [];
foreach ($tags as $tag) {
@ -96,6 +98,7 @@ class TagController extends Controller
return $this->render('WallabagCoreBundle:Tag:tags.html.twig', [
'tags' => $tags,
'renameForms' => $renameForms,
'nbEntriesUntagged' => $nbEntriesUntagged,
]);
}