Файл: content/themes/facebook/templates/ajax.messages.chat.tpl
Строк: 24
{foreach $messages as $message}
<li class="feedItem"
id="{$message.ConversationID}-{$message.ID}">
<div
class="dataContainer">
<div
class="dataSideWrapper ml5">
<a
href="{$SITE_URL}/{$message.UserName}"><img
src="{$SITE_URL}/{$message.UserAvatarPath}" /></a>
</div>
<div class="dataContentWrapper
ml10 mr5">
<div class="dataContent
mb5">
<!-- Buttons -->
<div class="dataButtons hidden">
<div class="button-close deleteNode"></div>
</div>
<!-- Buttons -->
<span class="relative
showHoverCard" id="{$message.UserID}">
<strong><a
href="{$SITE_URL}/{$message.UserName}">{$message.UserFirstName}
{$message.UserLastName}</a></strong>
<!-- Hover Card -->
<div
class="hoverCardWrapper hidden"></div>
<!-- Hover Card -->
</span>
<span class="timeago gray"
data-time="{$message.Time}"></span>
</div>
<div
class="dataContent">{$message.Text}</div>
</div>
</div>
</li>
{/foreach}
<script>jQuery("span[class*=timeago]").timeago();</script>