mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-13 06:18:18 +03:00
activity block text tooltip
This commit is contained in:
parent
cadc3898a8
commit
d822dff1bc
|
@ -11,8 +11,13 @@
|
|||
|
||||
{component 'activity' template='recent-item'
|
||||
user = $comment->getUser()
|
||||
comment = $comment
|
||||
topic = $topic
|
||||
date = $comment->getDate()}
|
||||
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}
|
||||
|
|
|
@ -23,4 +23,5 @@
|
|||
image=[
|
||||
'path' => $user->getProfileAvatarPath(48),
|
||||
'url' => $user->getUserWebPath()
|
||||
]}
|
||||
]
|
||||
params=$params}
|
|
@ -10,7 +10,11 @@
|
|||
{component 'activity' template='recent-item'
|
||||
user = $topic->getUser()
|
||||
topic = $topic
|
||||
date = $topic->getDatePublish()}
|
||||
date = $topic->getDatePublish()
|
||||
classes = 'js-title-topic'
|
||||
attributes = [
|
||||
title => {$topic->getText()|strip_tags|trim|truncate:150:'...'|escape}
|
||||
]}
|
||||
{foreachelse}
|
||||
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
||||
{/foreach}
|
||||
|
|
|
@ -11,8 +11,13 @@
|
|||
|
||||
{component 'activity' template='recent-item'
|
||||
user = $comment->getUser()
|
||||
comment = $comment
|
||||
topic = $topic
|
||||
date = $comment->getDate()}
|
||||
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}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{component_define_params params=[ 'user', 'topic', 'date' ]}
|
||||
{component_define_params params=[ 'user', 'topic', 'date', 'classes', 'attributes' ]}
|
||||
|
||||
<div class="ls-activity-block-recent-item">
|
||||
<div class="ls-activity-block-recent-item {$classes}" {cattr list=$attributes}>
|
||||
<a href="{$user->getUserWebPath()}" class="ls-activity-block-recent-user">{$user->getDisplayName()}</a>
|
||||
|
||||
<time datetime="{date_format date=$date format='c'}" class="ls-activity-block-recent-date">
|
||||
|
|
|
@ -10,7 +10,11 @@
|
|||
{component 'activity' template='recent-item'
|
||||
user = $topic->getUser()
|
||||
topic = $topic
|
||||
date = $topic->getDatePublish()}
|
||||
date = $topic->getDatePublish()
|
||||
classes = 'js-title-topic'
|
||||
attributes = [
|
||||
title => {$topic->getText()|strip_tags|trim|truncate:150:'...'|escape}
|
||||
]}
|
||||
{foreachelse}
|
||||
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
|
||||
{/foreach}
|
||||
|
|
Loading…
Reference in a new issue