mirror of
https://github.com/wallabag/wallabag.git
synced 2025-10-10 19:32:07 +00:00
Show untagged entries count on tag list
Closes #3235 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
parent
7e5b7e029a
commit
ad51743e8b
4 changed files with 19 additions and 2 deletions
|
@ -87,6 +87,8 @@ 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());
|
||||
|
||||
$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,
|
||||
'untagged' => $untagged,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue