clipbucket/upload/styles/global/blocks/account/dashboard_comments.html

22 lines
874 B
HTML
Raw Normal View History

{if $comments}
<p>{lang code='Following are 20 recent video comments within last 7 days'}</p>
<ul class="dashboard-lists cbv3-scroller clearfix">
{foreach $comments as $comment}
<li class="dashboard-list-item clearfix">
<img src="{avatar details=$comment}" width="60" height="60" />
<div class="pull-left details">
{$phrase=lang('%s posted on <a href="%s">%s</a>')}
{$name=comment_author( $comment )}
{$link=videoLink($comment)}
{$title=$comment.title|truncate:50}
<span>{$phrase|sprintf:$name:$link:$title} <a href="{$link}#comment-{$comment.comment_id}">#</a></span>
<p>{$comment.comment|comment|truncate:200}</p>
</div>
</li>
{/foreach}
</ul>
{else}
<div class="alert alert-error">
{lang code='No recent comments found'}
</div>
{/if}