clipbucket/upload/styles/cbv3/layout/blocks/groups/topic.html

136 lines
4.4 KiB
HTML
Raw Normal View History

2012-09-27 14:03:48 +00:00
{$commentid=$comment.comment_id}
{* Getting Comment Author *}
{$author=comment_author($comment)}
{* Marking it as spammed if either logged in user has marked it spam or
its spam count is > then the limit *}
{$is_comment_spam=is_comment_spam($comment)}
{$is_spammed='no'}
{if $is_comment_spam.user_spam || $is_comment_spam.global_spam}
{$is_spammed='yes'}
{/if}
<div class="group-topic-post-container" id="comment-container-{$commentid}">
{if $is_spammed!='yes'}
{$time=niceTime($comment.date_added)}
{$phrase=lang('posted by %s %s ')}
{$author=$comment.username}
<div class="group-topic-post" id="comment-{$commentid}">
<div class="topic-post-thumb">
<img src="{$userquery->getuserthumb($topic,'small')}" />
</div>
2012-09-27 14:03:48 +00:00
<div class="well well-small well-white relative topic-content">
<div class="topic-bubble-caret"></div>
<div class="topic-info">{$phrase|sprintf:$author:$time}</div>
<div class="topic-post">
{$comment.comment|comment}
</div>
<!-- Like Dislike -->
<div class="inlineBlock absolute like-dislike">
<div class="btn-group">
<button class="btn btn-mini"
onclick="rate_comment('{$commentid}','up','{$type}','{$type_id}');">
<i class="icon-like"></i></button>
{$rating_class = ''}
{if $comment.vote < 0}
{$rating_class='btn-danger'}
{/if}
{if $comment.vote > 0 }
{$rating_class='btn-info'}
{/if}
<button id="comment-rating-{$commentid}"
class="btn btn-mini {$rating_class}"
style=""><i class="icon-blank"></i>{$comment.vote|comment_rating}</button>
<button class="btn btn-mini"
onclick="rate_comment('{$commentid}','down','{$type}','{$type_id}');"><i class="icon-dislike"></i></button>
</div>
</div>
<!-- Comments options -->
<div class="inlineBlock topic-options">
<a class="reply-to"
data-id="{$commentid}"
data-author="{$author}"
onclick="add_reply('{$commentid}','{$author}');">{lang code='Reply'}</a>
·
<a class="spam-comment" data-id="{$commentid}" data-type="{$type}" data-type-id="{$type_id}">{lang code='Report'}</a>
{if can_delete_comment($comment)}
·
<a class="" onclick="delete_comment('{$commentid}','{$type}')">{lang code='Delete'}</a>
{/if}
2012-09-27 14:03:48 +00:00
</div>
<div class="clearfix"></div>
</div>
2012-09-27 14:03:48 +00:00
</div>
2012-09-27 14:03:48 +00:00
{/if}
{if $is_spammed=='yes'}
<!-- Spam comment -->
<div id="spam_comment_{$comment.comment_id}" class="spam btn disabled block text-left relative" {$spam_attr} >
{$spam_phrase=lang('marked_as_spam_comment_by_user')}
{$spam_phrase|sprintf:$author}
{if $is_comment_spam.user_spam}
<div class="absolute spammed-comment-btns">
<button class="btn btn-mini unspam-comment"
data-id="{$commentid}"
data-type="{$type}"
data-type-id="{$type_id}"
>{lang code='not spam'}</button>
<button class="btn btn-mini view-toggle"
data-toggle-id="spammed-comment-{$commentid}"
data-toggle-text="{lang code='hide comment'}" >{lang code='view comment'}</button>
{if can_delete_comment($comment)}
<button class="btn btn-mini btn-inverse" onclick="delete_comment('{$commentid}','{$type}')" >{lang code='delete'}</button>
{/if}
</div>
2012-09-27 14:03:48 +00:00
{/if}
</div>
2012-09-27 14:03:48 +00:00
{* comment in case user want to see it *}
{if $is_comment_spam.user_spam}
<div class="spammed-comment display-none" id="spammed-comment-{$commentid}">{$comment.comment|comment}</div>
{/if}
{/if}
<div class="height10">
</div>
<div class="clearfix"></div>
2012-09-27 14:03:48 +00:00
</div>