<?php
/* @var $this CommentWidget */
/* @var $data Comment */
?>
<div class="comment">

    <h4>
        <span class="comment-sender-name">
            <?php echo CHtml::encode($data->sender_name); ?>
        </span>
        <span class="comment-time">
            <time><?php echo Yii::app()->dateFormatter->formatDateTime($data->create_datetime); ?></time>
        </span>
    </h4>
    <div class="comment-body">
        <?php
        $body = CHtml::encode($data->body);
        echo nl2br(trim($body));
        ?>
    </div>
</div>