1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-04-28 06:59:25 +03:00

activity block text tooltip

This commit is contained in:
Chiffa 2017-03-13 04:11:41 +05:00
parent cadc3898a8
commit d822dff1bc
6 changed files with 26 additions and 7 deletions

View file

@ -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}

View file

@ -23,4 +23,5 @@
image=[
'path' => $user->getProfileAvatarPath(48),
'url' => $user->getUserWebPath()
]}
]
params=$params}

View file

@ -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}

View file

@ -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}

View file

@ -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">

View file

@ -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}