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

Remove link when there are no untagged articles

This commit is contained in:
Jeremy Benoist 2019-06-06 13:34:20 +02:00
parent 0f2d24feb4
commit 35c7819cb6
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
17 changed files with 26 additions and 4 deletions

View file

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