* [perf story #75386] Adjust execution dynamic page.

This commit is contained in:
wangyidong
2025-06-18 14:01:18 +08:00
parent a1249ffd7d
commit ee87801190
3 changed files with 26 additions and 5 deletions
+19 -2
View File
@@ -51,7 +51,8 @@ else
$lastAction = '';
foreach($dateGroups as $date => $actions)
{
$isToday = date(DT_DATE4) == $date;
$lastAction = end($actions);
$isToday = date(DT_DATE4) == $date;
if(empty($firstAction)) $firstAction = reset($actions);
$content[] = li
(
@@ -84,9 +85,25 @@ else
)
)
);
$lastAction = end($actions);
}
global $app;
$hasMore = $app->control->loadModel('action')->hasMoreAction($lastAction);
if($hasMore)
{
$content[] = li
(
a
(
setID('showMoreDynamic'),
setClass('block text-center'),
setData(array('lastid' => $lastAction->id)),
set::href('###'),
on::click('showMore'),
icon('chevron-double-down')
)
);
}
$content = ul
(
setClass('timeline list-none pl-0'),