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:
parent
0f2d24feb4
commit
35c7819cb6
17 changed files with 26 additions and 4 deletions
|
@ -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,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue