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