forked from saurabh/orbit4-5
26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
<li class="group-show-post-comment">
|
|
<div class="group-show-post-comment-wrap">
|
|
<div class="group-show-post-comment-avatar">
|
|
<%
|
|
user = post_comment.user rescue nil
|
|
if !user.nil?
|
|
author = (user.member_profile.name == nil ? user.user_name : user.member_profile.name rescue "")
|
|
avatar = (!user.member_profile.avatar.nil? ? user.member_profile.avatar.thumb.url : "/assets/member-pic.png" rescue "/assets/member-pic.png")
|
|
end
|
|
%>
|
|
<img src="<%= avatar %> " alt="Avatar image">
|
|
</div>
|
|
<div class="group-show-post-comment-body">
|
|
<div class="group-show-post-comment-author-wrap">
|
|
<div class="group-show-post-comment-author"><%= author %></div>
|
|
<% date = DateTime.parse(post_comment.created_at.to_s).strftime("%d %B") %>
|
|
<div class="group-show-post-comment-time muted"><%= date %></div>
|
|
</div>
|
|
<div class="group-show-post-comment-content">
|
|
<% content_images = parse_for_images(post_comment.comment) %>
|
|
<%= content_images.first %>
|
|
<%= content_images.last.html_safe %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li> |