{% if comment.createdUid is defined and comment.createdUid !='' and comment.createdUid|userPhotoById!='' and file_exists(base_path~'/images/uploads/user_photo/'~ comment.createdUid | userPhotoById) %}
{% set user_photo = comment.createdUid | userPhotoById %}
{# #}
{% else %}
{% endif %}
{% if data|length>0 %} {% for comment in data %}-
{% if comment.createdUid is defined and comment.createdUid !='' and comment.createdUid|userPhotoById!='' and file_exists(base_path~'/images/uploads/user_photo/'~ comment.createdUid | userPhotoById) %}
{% set user_photo = comment.createdUid | userPhotoById %}
{#
#}
{% else %}
{% endif %}
{#}
{% endfor %}
{% endif %}
{% if comment.sendBy=="admin" %} {{ "Admin" }} {% else %} {{ comment.sendBy }} {% endif %}
{#}{{ comment.sendby }}
{{ comment.createdAt |dateFormat(ob_project_date_format)}}{{ comment.comment | striptags | nl2br}}