From 0cde4e898f94a10b5da7a221d5ddab904e0f2b1d Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 15 May 2022 13:47:31 +0200 Subject: Automatic simplification of layout for many feeds (#4357) * Refactor OPML export categories Simplify code to comply with types hints. And renamed a property to plural. * Automatic simplification of layout for many feeds New advanced property to automatically simplify the layout when there are many (1k+) feeds so that FreshRSS works out of the box with 20k+ feeds scenarios https://github.com/FreshRSS/FreshRSS/pull/4347 Merge https://github.com/FreshRSS/FreshRSS/pull/4356 first. --- app/layout/aside_feed.phtml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'app/layout/aside_feed.phtml') diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml index 39804b8f4..62cb85df9 100644 --- a/app/layout/aside_feed.phtml +++ b/app/layout/aside_feed.phtml @@ -71,6 +71,11 @@ categories as $cat) { + $nbFeedsTotal += $cat->nbFeeds(); + } + foreach ($this->categories as $cat): $feeds = $cat->feeds(); $position = $cat->attributes('position'); @@ -95,12 +100,14 @@ ?>
  • -