mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-12 13:58:19 +03:00
24 lines
828 B
Smarty
24 lines
828 B
Smarty
{**
|
|
* Последняя активность
|
|
* Топики отсортированные по времени последнего комментария
|
|
*}
|
|
|
|
{component_define_params params=[ 'comments' ]}
|
|
|
|
<div class="ls-activity-block-recent-items">
|
|
{foreach $comments as $comment}
|
|
{$topic = $comment->getTarget()}
|
|
|
|
{component 'activity' template='recent-item'
|
|
user = $comment->getUser()
|
|
comment = $comment
|
|
topic = $topic
|
|
date = $comment->getDate()
|
|
classes = 'js-title-comment'
|
|
attributes = [
|
|
title => {$comment->getText()|strip_tags|trim|truncate:100:'...'|escape}
|
|
]}
|
|
{foreachelse}
|
|
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
|
{/foreach}
|
|
</div> |