* [perf story #75386] Adjust execution dynamic page.
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user