File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
frontend/templates/views/landing Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ d.Node landingPageNode({
46
46
height: 240 ,
47
47
),
48
48
title: 'Trending packages' ,
49
- info: d.text ('Some of the packages trending in the last 30 days' ),
49
+ info: d.text ('Top trending packages in the last 30 days' ),
50
50
content: miniListNode ('most-trending' , trendingPackages! ),
51
51
viewAllUrl: urls.listingByTrending (),
52
52
viewAllEvent: 'landing-trending-view-all' ,
Original file line number Diff line number Diff line change @@ -92,7 +92,11 @@ class TopPackages {
92
92
}
93
93
94
94
List <PackageView > trending () {
95
- return _randomSelection (_trending, 6 );
95
+ final trending = _trending.value;
96
+ if (trending != null && trending.length > 6 ) {
97
+ return trending.sublist (0 , 6 );
98
+ }
99
+ return [];
96
100
}
97
101
98
102
List <PackageView > _randomSelection (
You can’t perform that action at this time.
0 commit comments